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

Victor Chernetsky victor at amigocloud.com
Tue Nov 28 15:20:20 PST 2017


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
victor at amigocloud.com

On Tue, Nov 28, 2017 at 3:15 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> 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 are just ways of operating of ogr2ogr and the drivers
> are not aware of them. The consequence are just how ogr2ogr use the driver
> API.
>
>
>
> * -update: open the dataset in update mode
>
>
>
> * -append imply -update, and instruct ogr2ogr to reuse exisisting layers
> instead of erroring out if they exist.
>
>
>
> In both cases, features will get inserted through ICreateFeature()
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171128/680f68d1/attachment.html>


More information about the gdal-dev mailing list