Feature request #11569

Use ogr2ogr to Dissolve polygons

Added by Filipe Dias almost 3 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assignee:Giovanni Manghi
Category:Processing/GDAL
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No

Description

Apparently it is possible use ogr2ogr to dissolve polygons using GDAL compiled with SpatiaLite support. Example:

ogr2ogr output.shp input.shp -dialect sqlite -sql "SELECT ST_Union(geometry), dissolve_field FROM input GROUP BY dissolve_field"

For more details see: http://gis.stackexchange.com/questions/85028/dissolve-aggregate-polygons-with-ogr2ogr-or-gpc)

This would be a nice addition to Processing, since QGIS native Dissolve is rather slow. It would also be useful to be able to summarize the contents of the Dissolved features (i.e. sum, subtract, multiply etc).

See: http://gis.stackexchange.com/questions/65744/what-dissolve-tool-in-qgis-allows-me-to-summarize-statistics-for-multiple-attrib

History

#1 Updated by Giovanni Manghi almost 3 years ago

  • Status changed from Open to Feedback

how this alternative compare, in term of speed, to the native qgis tool, to the grass dissolve (in Processing) and the saga one (in Processing)?

#2 Updated by Giovanni Manghi almost 3 years ago

  • Assignee changed from Victor Olaya to Giovanni Manghi

#3 Updated by Giovanni Manghi almost 3 years ago

  • Status changed from Feedback to Open

I answer myself, is very fast. As fast as SAGA. GRASS is "slow" because of the in/out overhead, while qgis native tool is dead slow.

#4 Updated by Filipe Dias almost 3 years ago

According to my tests, significantly faster than QGIS native tool. And it has the advantage of not relying on external software.

#5 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

already implemented.

Also available in: Atom PDF