[gdal-dev] gdalwarp -overwrite

Gong, Shawn shawn.gong at mdacorporation.com
Wed Jan 9 06:48:30 PST 2019


Thank you Even.

Shawn

________________________________________
From: Even Rouault [even.rouault at spatialys.com]
Sent: January-09-19 4:40 AM
To: gdal-dev at lists.osgeo.org
Cc: Gong, Shawn
Subject: Re: [gdal-dev] gdalwarp -overwrite

On mardi 8 janvier 2019 21:27:54 CET Gong, Shawn wrote:
> Hi list,
>
> I am switching from calling gdalwarp to using gdal.Warp( )
> One of the gdalwarp parameters is "-overwrite" but I can't find it in
> gdal.WarpOptions
>
> Do I need it, is it a default option if I don't specify it?

If you use a string for the output filename as the first argument, then it
will operate in overwrite mode.
If you use a dataset object opened in update mode, then it will operate in
update mode.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list