« Return to Thread: Polygon and Multipolygon distinguished by field type constraint - call for a generic AnyPoly type

Polygon and Multipolygon distinguished by field type constraint - call for a generic AnyPoly type

by Ben Harper-2 :: Rate this Message:

Reply to Author | View in Thread

I am looking for a way of creating a geometry field that has a
constrained type identical to the Shapefile spec.
Basically, Polygons and MultiPolygons are equals. Linestrings and
Multilinestrings are equals.
Is there a way to accomplish this with PostGIS?
If I make the field Polygon, then I can't insert Multipolygons, and vice versa.

Thanks,
Ben
_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users

 « Return to Thread: Polygon and Multipolygon distinguished by field type constraint - call for a generic AnyPoly type