[postgis-users] TopologyException and ST_Intersection

Bob and Deb bobdebm at gmail.com
Mon Jun 25 09:15:21 PDT 2012


People should be cautioned that some polygons might disappear when using a
buffer of 0.  Does Postgis 2.0 have this problem with makevalid?
On Jun 25, 2012 7:47 AM, "Nicolas Ribot" <nicolas.ribot at gmail.com> wrote:

> > Hi Nicolas,
> > This is great.  However, we are running POSTGIS="1.5.3"  Is this
> possible in
> > this version?  If not, is there a workaround as I don't think we will be
> > able to upgrade that quickely?
> >
> >
>
> Hi Derek
>
> Yes indeed, there is a trick on postgis < 2.0 to clean polygons: try
> using st_buffer(geom, 0.0). This method is often able to rebuild a
> valid polygon from an invalid one. I also saw on the list (and tested
> myself) that st_buffer(st_buffer(geom, -1), 1) could clean some
> polygons that are not cleaned with only a 0 unit buffer.
>
> Nicolas
> _______________________________________________
> 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/20120625/c61d1f22/attachment.html>


More information about the postgis-users mailing list