Ticket #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
Note: See
TracTickets for help on using
tickets.
