[postgis-users] dissolve function

Nelson Guda nelsong at mail.utexas.edu
Fri May 5 06:04:53 PDT 2006


I was so pleased to find this dissolve function from strk at keybit.net  
among the old posts.  Is there any way that it could be added to the  
online documentation?

In fact, it would be really great if there could be a section in the  
documentation for custom functions such as this.  These are the sort  
of tools that really ramp up the usefulness of postgis.

Thanks,
nelson


CREATE AGGREGATE unite (
         sfunc = GeomUnion,
         basetype = geometry,
         stype = geometry
); -- this creates an aggregate out of GEOS's geomunion()

-- and this is your query 
SELECT your_attribute, unite(the_geom)
	FROM your_table
	GROUP BY your_attribute;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060505/d77a7e16/attachment.html>


More information about the postgis-users mailing list