1

I'm trying to dissolve a shapefile according to a field using Python 2.7.10 and I don't want to use ArcPy.

Is there any way to do this using GDAL/OGR?

0

Using the QGIS Processing GDAL Dissolve algorithm and checking the log, you can find something like this:

ogr2ogr /tmp/OUTPUT.shp /tmp/points.shp -nlt PROMOTE_TO_MULTI -dialect sqlite -sql "SELECT ST_Union(geometry) AS geometry, \"DissolveID\" FROM \"points\" GROUP BY \"DissolveID\"" -f "ESRI Shapefile"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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