Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any open-source library to aggregate detached polygons? I know that there is a tool in ArcInfo, but it is commercial.

share|improve this question
Knowing which tool in ArcInfo are you trying to replicate would be helpful. Are you referring to the Dissolve function? or something else? – RyanDalton Apr 30 '12 at 17:57
I assume Sanjeewa means the actual 'Aggregate Polygons' tool (requires ArcInfo). In ArcGIS 10 it is under the Generalization tools of the Cartography toolbox. It produces a sort-off concave-hull for want of a better term. – MappaGnosis May 3 '12 at 14:02
up vote 1 down vote accepted

PostGIS has a ST_ConcaveHull function which equates closely to the Aggregate Polygons function of ArcGIS. Sadly Spatialite does NOT have this function.

A concave hull can be thought of as a "shrink-wrapped" convex hull.

share|improve this answer

if you have PostgreSQL, there is a sql function which have been writed from Dr. Horst Duester. he has two sql code, one is for Orthogonal Aggregation of Buildings and another is for non Orthogonal Aggregation... you can find sql codes here.

it determines edge of objects very good way with defination of threshold..and its query is so easy to use:


select aggregatepolygons(wkb_geometry, 50, true) from buildings group by art;


Orthogonal Aggregation of Buildings

figure 1

Non Orthogonal Aggregation of Natural Objects

enter image description here

i hope it helps you...

share|improve this answer
Yes, thanks a lot – Sanjeewa May 9 '12 at 9:29

Try the Java Topology Suite (JTS). There is a user guide which has a heading "How to Union Many Polygons Efficiently".

share|improve this answer

Also, Sextante is a GIS library for Java. It may include that functionality -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.