[postgis-devel] [PostGIS] #864: shp2pgsql fails to import MULTIPOINTs with only one vertice.

PostGIS trac at osgeo.org
Fri Mar 18 04:46:54 PDT 2011


#864: shp2pgsql fails to import MULTIPOINTs with only one vertice.
---------------------+------------------------------------------------------
 Reporter:  jadams   |       Owner:  jadams       
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 If a shapefile is a MULTIPOINT type, but one of the points has only one
 vertice, it will get generated in the insert statement as a POINT type.
 That then fails to be inserted with:

 ERROR:  new row for relation "foo" violates check constraint
 "enforce_geotype_the_geom"

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