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

Even Rouault even.rouault at spatialys.com
Wed Nov 29 12:02:53 PST 2017


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 at
https://github.com/OSGeo/gdal/blob/trunk/gdal/apps/ogr2ogr_lib.cpp#L3180
that first try to see if a layer has the same name as the input layer name, and if so call 
DeleteLayer() on it


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171129/9e7c6d9b/attachment.html>


More information about the gdal-dev mailing list