Feature request #11569
Use ogr2ogr to Dissolve polygons
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Giovanni Manghi | ||
Category: | Processing/GDAL | ||
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Easy fix?: | No | Copied to github as #: | 19831 |
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).
History
#1 Updated by Giovanni Manghi about 10 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 about 10 years ago
- Assignee changed from Victor Olaya to Giovanni Manghi
#3 Updated by Giovanni Manghi about 10 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 about 10 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 9 years ago
- Resolution set to fixed/implemented
- Status changed from Open to Closed
already implemented.