[postgis-devel] [PostGIS] #2120: shp2pgsql mishandles geometry column

PostGIS trac at osgeo.org
Thu Nov 29 20:01:44 PST 2012

#2120: shp2pgsql mishandles geometry column
 Reporter:  arencambre  |       Owner:  pramsey      
     Type:  defect      |      Status:  new          
 Priority:  medium      |   Milestone:  PostGIS 2.0.2
Component:  postgis     |     Version:  2.0.x        
 Keywords:              |  
 Running shp2pgsql on the attached SHP produces the attached SQL file. The
 only switch I used was '''-s 3081'''.

 The geometry column is mishandled for two reasons:

  * Type is '''varchar'''. Should be '''geometry'''.
  * Even if '''varchar''' was correct, it's making a '''varchar''' with
 length 255, which is far to small to contain some of the values for that
 column in the SQL '''INSERT''' commands.

 This is happening with 2.0.1.

Ticket URL: <http://trac.osgeo.org/postgis/ticket/2120>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.

More information about the postgis-devel mailing list