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

PostGIS trac at osgeo.org
Thu Nov 29 20:46:47 PST 2012


#2120: shp2pgsql mishandles geometry column
-------------------------+--------------------------------------------------
  Reporter:  arencambre  |       Owner:  pramsey      
      Type:  defect      |      Status:  closed       
  Priority:  medium      |   Milestone:  PostGIS 2.0.2
 Component:  postgis     |     Version:  2.0.x        
Resolution:  invalid     |    Keywords:               
-------------------------+--------------------------------------------------
Changes (by robe):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 There is nothing wrong here.  The issue is with your data file.

 If you look at the dbf file you've got, you'll see that it indeed does
 have a column called the_geom and it infact does have text that looks like
 the wkt output of a geometry.

 The geometry data is always kept in the .shp file and never has a name.
 shp2pgsql when the -g is not spec ified defaults to calling it geom.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2120#comment:2>
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