Re: [gdal-dev] ogr2ogr.py sqlite dialect unsupported?

2019-09-03 Thread Martin Lacayo
Thank you, the following code worked perfectly: import os import osgeo.gdal name, ext = os.path.splitext(os.path.basename(in_path)) srcDS = osgeo.gdal.OpenEx(in_path) ds = osgeo.gdal.VectorTranslate(out_path, srcDS, SQLStatement="SELECT ST_Union(geometry) FROM " + name , SQLDialect='sqlite') Che

Re: [gdal-dev] ogr2ogr.py sqlite dialect unsupported?

2019-09-02 Thread Even Rouault
ogr2ogr.py is a toy / sample file which receives little maintainance, and was mostly a one-time port of the ogr2ogr.cpp source, which is the on used by the command line utility. You may use the 'librarified' ogr2ogr with the gdal.VectorTranslate() Python function. Examples at https://github.co

[gdal-dev] ogr2ogr.py sqlite dialect unsupported?

2019-09-02 Thread Martin Lacayo
Hello, I complied GDAL 3.0.1 from source with Python, SQLite, and SpatiLite enabled. I am trying to dissolve polygons in a Shapefile with the following command: ogr2ogr output.shp input.shp -dialect sqlite -sql "SELECT ST_Union(geometry) FROM input" This works from the command line, but not as I

Re: [gdal-dev] ogr2ogr.py

2014-06-27 Thread Mike Saunt
Cool, and understood. It caught me out, that is all and I'd like to make sure it doesn't for others... Sent from my phone which isn't an iPhone On 27 Jun 2014 07:40, "Chaitanya kumar CH" wrote: > Mike, > > Thanks for the update. But, I have to mention that the python scripts are > primarily to s

Re: [gdal-dev] ogr2ogr.py

2014-06-26 Thread Chaitanya kumar CH
Mike, Thanks for the update. But, I have to mention that the python scripts are primarily to serve as examples. You can submit a ticket (bug report) on gdal trac and attach a diff patch along with the description. http://trac.osgeo.org/gdal/#BugTracking One of the committers should pick it up.

[gdal-dev] ogr2ogr.py

2014-06-26 Thread Mike Saunt
Hi ​ I've updated ogr2ogr.py with a really small change which is to accept the -dialect parameter that is now available. I'm wondering how / what the process is for submitting back. ​ ​If someone could let me know or pointing me