[postgis-users] Boundary() without the internal holes?

Brad Ediger brad at bradediger.com
Wed Feb 28 15:57:12 PST 2007


Sounds like you're looking for ExteriorRing(polygon). A polygon has  
one exterior ring and zero or more interior rings. ExteriorRing is a  
lot cheaper (computationally) than calculating a convex hull or  
boundary.

Documentation here -> http://postgis.refractions.net/docs/ch06.html

Brad

On Feb 28, 2007, at 5:30 PM, John Carnes wrote:

> I am trying to figure out how to get a polygon that is the boundary  
> of a geounion of polygons without getting polygons for the internal  
> holes.
>
> The boundary() function is close, but includes the internal holes.
>
>     SELECT boundary(geomunion(p.the_geom)) FROM parcels AS p WHERE  
> p.neighborhood=5;
>
> A convex hull, leaves out the internal holes, but the resulting  
> polygon doesn't touch the actual boundary anywhere that it is concave.
>
> Thanks in advance for your ideas on how to do this.
> I'd really like to avoid having to delete the internal hole  
> polygons by hand, which is my current solution.
>
> John Carnes
> MapTools
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070228/f52f1eea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070228/f52f1eea/attachment.bin>


More information about the postgis-users mailing list