[postgis-users] Polygon and Multipolygon distinguished by field type constraint - call for a generic AnyPoly type

Ben Madin ben at remoteinformation.com.au
Thu Jul 2 07:21:47 PDT 2009


Could you not just use a Geometry type?

cheers

Ben


On 02/07/2009, at 5:47 PM, Ben Harper wrote:

> 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 at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

ben at remoteinformation.com.au



							Out here, it pays to know...





More information about the postgis-users mailing list