Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#864 closed defect (fixed)

shp2pgsql fails to import MULTIPOINTs with only one vertice.

Reported by: jadams Owned by: jadams
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: 1.5.X
Keywords: history Cc:

Description

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"

Change History (2)

comment:1 by jadams, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk in revision 6922. Single-vertex multipoints now still get loaded as multipoints rather than as points.

comment:2 by robe, 11 years ago

Keywords: history added
Note: See TracTickets for help on using tickets.