[postgis-devel] [PostGIS] #336: shp2pgsql -S parameter, broken edge case

PostGIS trac at osgeo.org
Mon Dec 7 09:43:33 PST 2009

#336: shp2pgsql -S parameter, broken edge case
 Reporter:  kneufeld   |       Owner:  pramsey      
     Type:  defect     |      Status:  new          
 Priority:  medium     |   Milestone:  PostGIS 1.4.2
Component:  postgis    |     Version:  1.4.X        
 Keywords:  shp2pgsql  |  
 The -S parameter (generates simple geometries instead of MULTI geometries)
 doesn't work when the input shapefile is already "simple".

 C:\>shp2pgsql -i -D –S -s 3005 %WORKSPACE%\bc_hospitals.shp bc_hospitals >
 –S: shape (.shp) or index files (.shx) can not be opened, will just import
 attribute data.
 –S: dbf file (.dbf) can not be opened.

 C:\>shp2pgsql -i -D -s 3005 %WORKSPACE%\bc_hospitals.shp bc_hospitals >
 Shapefile type: Point
 Postgis type: POINT[2]

 C:\>shp2pgsql /?
 RCSID: $Id: shp2pgsql.c 4204 2009-06-24 11:18:29Z mcayland $ RELEASE: 1.4
 USAGE: shp2pgsql [<options>] <shapefile> [<schema>.]<table>

Ticket URL: <http://trac.osgeo.org/postgis/ticket/336>
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