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

Even Rouault even.rouault at spatialys.com
Wed Nov 29 13:53:44 PST 2017


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() and checking their 
names against the target layer name. See the portion of ogr2ogr I pointed 
to.

-- 
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/e946f934/attachment-0001.html>


More information about the gdal-dev mailing list