Re: [gdal-dev] About CMake build again

2017-11-28 Thread Larry Shaffer
Hi All, Apologies for top-posting, albeit the thread has stopped for ~month. While I have not contributed that much to the GDAL project over the years, I have build it a LOT (mostly on Win and macOS [0]). Switching to CMake would be a good future-proof, cross-platform move, even if it is overly v

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Thanks, this helps! The thing is I cannot really use layer name to identify an AmigoCloud dataset. In AmigoCloud we have names, but they are not guarantied to be unique. We use dataset Id to identify a dataset (ogr layer) instead. In my example "Visits" it's just a name of the source data file, wh

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:40:46 CET Victor Chernetsky wrote: > Here is my example: > ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100056" > ~/Downloads/Visits.geojson > > I am trying to append, or overwrite data into existing dataset id:100056. > But it still created a new datase

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Here is my example: ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100056" ~/Downloads/Visits.geojson I am trying to append, or overwrite data into existing dataset id:100056. But it still created a new dataset, and it did not delete/clean old dataset. I am thinking I need to do somet

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:20:20 CET Victor Chernetsky wrote: > Hi Even, > > Then in my driver, how do I know if I have to append data to existing > dataset, > or overwrite existing data, or create a new dataset all together? That should work automagically if you correctly implement the semant

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Hi Even, Then in my driver, how do I know if I have to append data to existing dataset, or overwrite existing data, or create a new dataset all together? What about -overwrite option? Thanks, *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com On Tue, Nov 28, 2017 at 3:15 PM, Even Ro

Re: [gdal-dev] Question about command line options -append

2017-11-28 Thread Even Rouault
On mardi 28 novembre 2017 15:00:11 CET Victor Chernetsky wrote: > Hello, > > How do I get value/state of a command line option of ogr2ogr. For instance > I want to handle options like -append, -update inside of my DataSource > class? Is there a documentation about it? Victor, -append and -update

[gdal-dev] Question about command line options -append

2017-11-28 Thread Victor Chernetsky
Hello, How do I get value/state of a command line option of ogr2ogr. For instance I want to handle options like -append, -update inside of my DataSource class? Is there a documentation about it? Thanks, *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com _

Re: [gdal-dev] Building with support for VirtualOGR

2017-11-28 Thread René Hansen
For future reference, this was the winning combination to get through a make/install, with the Android NDK for me: ./configure --host=arm-linux-androideabi --prefix=`pwd`/install/external/gdal \ --with-sqlite3=/path/to/sqlite/xcompilation \ --with-jpeg=internal \ --without-jpeg12 Now I've g

Re: [gdal-dev] Building with support for VirtualOGR

2017-11-28 Thread René Hansen
Jackpot. That was it! It's amazing what kind of blindspots you can develop, setting up cross compilations. Now I'm wrestling with build errors related to jpeg and jpeg12, apparently just disabling them with --with-jpeg=no and --without-jpeg12, breaks all kinds of other stuff. Alas, that is a dif

Re: [gdal-dev] Building with support for VirtualOGR

2017-11-28 Thread Even Rouault
René, > As the subject reveals, I'm trying to compile with SQLite support, so I can > load libgdal.so as an extension, as per the example on > http://gdal.org/drv_sqlite.html. > > I'm building with the Android NDK and it succeeds, seemingly fine, but when > I load the library as an extension: [..

[gdal-dev] Building with support for VirtualOGR

2017-11-28 Thread René Hansen
Hi all, As the subject reveals, I'm trying to compile with SQLite support, so I can load libgdal.so as an extension, as per the example on http://gdal.org/drv_sqlite.html. I'm building with the Android NDK and it succeeds, seemingly fine, but when I load the library as an extension: sqlite3_exe

Re: [gdal-dev] pass gdal dataset as an argument from Python to C

2017-11-28 Thread Ari Jolma
Sean Gillies kirjoitti 27.11.2017 klo 20:46: I believe it's possible, yes, but it will be challenging. I'm not aware of anybody else doing this. I'm doing it but in the Perl side. It's not impossible but Swig does wrap the C pointers quite deep into the Perl object (it must be similar in the