[postgis-users] shp2pgsql question

Stephen Davies sdc at sdc.com.au
Wed Oct 4 00:50:40 PDT 2006


I need to load data from a shape file into a PostGIS database.
shp2pgsql almost does this for me but the geometry type generated is 
MULTIPOLYGON(2) instead of POLYGON as required by the table constraint.

Is there a way to edit the generated SQL to tell PostGIS to convert from 
one to the other? (I would prefer to not have to use a temporary 
table).

Cheers and thanks,
Stephen Davies
-- 
========================================================================
This email is for the person(s) identified above, and is confidential to
the sender and the person(s).  No one else is authorised to use or
disseminate this email or its contents.

Stephen Davies Consulting                            Voice: 08-8177 1595
Adelaide, South Australia.                             Fax: 08-8177 0133
Computing & Network solutions.                       Mobile:0403 0405 83



More information about the postgis-users mailing list