[Gdal-dev] aggregate polygons to multipolygons based on an attribute column (shapefile)

Bart van den Eijnden BEN at Syncera-ITSolutions.NL
Wed Jun 15 09:04:42 EDT 2005


Hi list,

is there a tool in the OGR library to aggregate polygons to multipolygons based on an attribute column for shapefiles? Does anybody know how to go about this if it can't be done with OGR?

Eg:

LOCATION_ID    SHAPE
1                         a polygon geometry
1                         a polygon geometry
1                         a polygon geometry
2                         a polygon geometry
2                         a polygon geometry
...

should become

LOCATION_ID    SHAPE
1                         a multipolygon geometry
2                         a multipolygon geometry
...

Thanks in advance.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl




More information about the Gdal-dev mailing list