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

2017-11-29 Thread Victor Chernetsky
Thanks, this worked! I have a followup question: how does gdal/ogr2ogr knows that my destination dataset/layer exists? For instance, -append option suppose to do different things if layer exists, or not. I don't see any isExists() APIs that would check it. Thanks, *Victor Chernetsky* +1

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

2017-11-29 Thread Victor Chernetsky
-oo OVERWRITE=YES -f AmigoCloud "AmigoCloud:15276 datasets=100322" ~/Downloads/Visits.geojson In my driver CSLFetchNameValue( papszOptions, "OVERWRITE" ) is always NULL, and DeleteLayer(int iLayer) never gets called. How do switch ogr2ogr onto overwrite mode? Or how do I catch it in

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

2017-11-28 Thread Victor Chernetsky
ource data file, which gdal uses as a layer name. This is fine, but for destination AmigoCloud dataset I specify a dataset id explicitly anyway. So I know my destination dataset, and if it exists or not. I think with the info I have now I could do few small changes to handle these cases. *Victor C

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

2017-11-28 Thread Victor Chernetsky
need to do something in my OGRAmigoCloudDataSource::ICreateLayer(). I am not checking if dataset exist. I always create a new one. How should I handle this case? *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com On Tue, Nov 28, 2017 at 3:30 PM, Even Rouault wrote: > On mardi 28 nov

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

[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] question about --config cmd line option

2017-10-18 Thread Victor Chernetsky
Thanks Even. I just wanted to confirm it. On Wed, Oct 18, 2017 at 11:51 AM, Even Rouault wrote: > On mercredi 18 octobre 2017 11:40:55 CEST Victor Chernetsky wrote: > > Hello, > > > > I am developing the AmigoCloud driver for GDAL, and I have a question > about > >

[gdal-dev] question about --config cmd line option

2017-10-18 Thread Victor Chernetsky
")); printf("AMIGOCLOUD_API_KEY: '%s'\n", osAPIKey.c_str()); Am I doing something wrong in my code, or the space is the way to go? Thanks, *Victor Chernetsky* +1 (408) 368-4607 vic...@amigocloud.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] (no subject)

2017-02-28 Thread Victor Chernetsky
Hello, Is there future GDAL release schedule available anywhere? I am actually wondering about when is GDAL 2.2 is planned to be released? And are there any more of 2.1.x releases ahead? Thank you, *Victor Chernetsky* ___ gdal-dev mailing list gdal-dev