[postgis-users] Difference between ST_Union and ST_Collect

Sandro Santilli strk at keybit.net
Fri May 25 03:41:31 PDT 2012


On Fri, May 25, 2012 at 08:38:44PM +1000, Luca Morandini wrote:

> The issue has been solved by using ST_Union, but I still can't
> fathom why entire polygons were dropped by ST_BuildArea when their
> boundaries intersected..

ST_BuildArea expects input to be correctly noded. Failing that, the
actual result is undefined. Passing the input trough ST_Union is a trick
to obtain proper noding.

--strk;

  ,------o-. 
  |   __/  |    Delivering high quality PostGIS 2.0 !
  |  / 2.0 |    http://strk.keybit.net - http://vizzuality.com
  `-o------'




More information about the postgis-users mailing list