[gdal-dev] Merge all features in polygon shapefile with gdal

Luke lukepinnerau at gmail.com
Mon Jul 6 22:03:49 PDT 2015


Steven, 

Remove the group by and it will ignore the attributes.

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

Regards
Luke


Steven Lutz wrote
> ...
> this is what I've come up with:
> 
> |ogr2ogr output.shp input.shp -dialect sqlite -sql
> "SELECT ST_Union(geometry), dissolve_field FROM input GROUP BY
> dissolve_field"|
> 
> it looks to me that it is trying to do this operation based on specific 
> attribute entries but I'm looking to ignore the attribute entrie and 
> make all features into one.





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Merge-all-features-in-polygon-shapefile-with-gdal-tp5214520p5214533.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list