Ticket #779 (closed defect: fixed)
shp2pgsql -S option seems to fail, and is missing in doc
| Reported by: | nicklas | Owned by: | jadams |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 1.5.3 |
| Component: | postgis | Version: | 1.5.X |
| Keywords: | history | Cc: |
Description
Hallo
here is a problem to load points from a shapefile with type multipoint http://gis.stackexchange.com/questions/5213/problem-loading-os-opendata-multipoint-shapefile-into-postgis
I checked the data the user is providing and if loaded with SPIT I find that all geometries gets true for ST_Issimple and none has more than one point.
In spite of that using the -S option still gives Multipoint
First, shouldn't -S option in this case create POINT of all geometries?
Second, what if it would have been one MULTIPOINT geometry in the shape, what to do? I thought there where some option to force all geometries to multi instead. I think SPIT does (and also not sets any constraint)
And -S option seems to be missing in documentation, and in the help in shap2pgsql -w option seems to be missing instead.
/Nicklas
