[postgis-users] ST_Insersection problem

Sandro Santilli strk at keybit.net
Tue Sep 20 06:07:04 PDT 2011


On Tue, Sep 20, 2011 at 06:04:47AM -0700, G. van Es wrote:
> I'm interested in the area of the intersection so a boolean answer will not do. The example query is the one I use to prevent my screen from filling with a few hundred-thousands records.
> 
> I have simplified all geometries to POLYGON (no MULTI, no Collection), still st_intersection crashes.
> 
> My conclusion that it is a bug either in PG or GEOS, which also is mentioned in the manual.
> 
> So for any idea about a workaround I would be very happy to know about it.

Try passing the geometries trough ST_SnapToGrid, making sure they remain valid.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-users mailing list