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

2015-07-06 Thread Luke
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

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

2015-07-06 Thread Roger André
Hey Steven, Are you trying to do this via a spatially enabled database? In PostGIS, the dissolve syntax looks like this: "SELECT dissolve_field, ST_UNION(geometry) FROM table GROUP BY dissolve_field;" Roger On Mon, Jul 6, 2015 at 4:13 PM, Steven Lutz wrote: > I've found some examples of ho

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

2015-07-06 Thread Steven Lutz
I've found some examples of how to dissolve features in a polygon using gdal but I'm not familiar with how to implement them. here is an example of what I've found, but I'm having trouble modifying it this is what I've come up with: |ogr2ogr output.shp input.shp -dialect sqlite -sql "SELECT ST_

Re: [gdal-dev] compiling mongodb driver???

2015-07-06 Thread Even Rouault
Le lundi 06 juillet 2015 14:12:11, kusala nine a écrit : > I'm still struggling with compiling in the mongo driver to version 2.1 of > the source. I compile the mongocxx driver (scons --prefix= > --sharelibraries=yes install) and then use the build folder to point the > gdal build at the mongoclien

Re: [gdal-dev] compiling mongodb driver???

2015-07-06 Thread kusala nine
I'm still struggling with compiling in the mongo driver to version 2.1 of the source. I compile the mongocxx driver (scons --prefix= --sharelibraries=yes install) and then use the build folder to point the gdal build at the mongoclient.so but, even after a successful ./configure I get the messages