On mercredi 29 novembre 2017 13:33:17 CET Victor Chernetsky wrote:
> Thanks, this worked!
>
> I have a followup question: how does gdal/ogr2ogr knows that my
destination
> dataset/layer exists?
For the dataset, it tries to GDALOpen() it.
For the layer, by iterating over layers with GetLayer() a
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 (408) 3
On mercredi 29 novembre 2017 12:00:17 CET Victor Chernetsky wrote:
> Hey Even,
>
> How do I set OVERWRITE option?
With -lco OVERWRITE=YES since this is a layer creation option
> I tried all these:
> ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100322"
This will trigger the logic
Hey Even,
How do I set OVERWRITE option?
I tried all these:
ogr2ogr -overwrite -f AmigoCloud "AmigoCloud:15276 datasets=100322"
~/Downloads/Visits.geojson
ogr2ogr --config OVERWRITE YES -f AmigoCloud "AmigoCloud:15276
datasets=100322" ~/Downloads/Visits.geojson
ogr2ogr -oo OVERWRITE=YES -f AmigoCl
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
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
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
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
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
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
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
_
11 matches
Mail list logo