Opened 14 years ago

Closed 14 years ago

#336 closed defect (worksforme)

shp2pgsql -S parameter, broken edge case

Reported by: kneufeld Owned by: pramsey
Priority: medium Milestone: PostGIS 1.4.2
Component: postgis Version: 1.4.X
Keywords: shp2pgsql Cc:

Description

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 > bc_data.sql
–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 > bc_data.sql
Shapefile type: Point
Postgis type: POINT[2]

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

Change History (1)

comment:1 by kneufeld, 14 years ago

Resolution: worksforme
Status: newclosed

Ok, I think this may be an invalid ticket, and rather a crazy issue with the Windoze cmd console. The shape load works fine if I type the command directly into the cmd console, but not if I paste the text in.

Note: See TracTickets for help on using tickets.