[postgis-devel] [PostGIS] #779: shp2pgsql -S option seems to fail, and is missing in doc

PostGIS trac at osgeo.org
Mon Jan 17 03:28:18 PST 2011


#779: shp2pgsql -S option seems to fail, and is missing in doc
---------------------+------------------------------------------------------
 Reporter:  nicklas  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.3
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 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

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