[postgis-users] Dissolve obsolete polygon borders

strk strk at keybit.net
Thu Oct 16 00:20:44 PDT 2003


Horst.Duester wrote:
> strk
> 
> Thank you for your response. I doesn't work, PostgreSQL responses with 
> "GEOS union() threw an error!".
> 
> Horst

Try downloading the latest postgis from CVS repository, it now contains
new code to show a more meaningful message (thanks Dave).

--strk;

> 
> 
> -----Ursprüngliche Nachricht-----
> Von: strk [mailto:strk at keybit.net]
> Gesendet am: Mittwoch, 15. Oktober 2003 14:58
> An: PostGIS Users Discussion
> Betreff: Re: [postgis-users] Dissolve obsolete polygon borders
> 
> Try this:
> 
> 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;
> 
> Note that GEOS cvs version is pretty memory absorbing (actually leaking)
> and probably also buggy. Please let me know whether it worked for you.
> 
> --strk;
> 
> Horst.Duester wrote:
> > Is there a way to dissolve obsolete borders between polygons with equal
> > attributes??
> >  
> > I will appreciate your hints.
> >  
> > Horst
> > 
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list