[gdal-dev] gdalwarp into an existing destination from python
Olivier Dalang
olivier.dalang at gmail.com
Wed Nov 27 14:30:22 PST 2019
Awesome, that's what I was looking for :-)
Thanks !!!
Olivier
On Wed, 27 Nov 2019 at 20:28, Even Rouault <even.rouault at spatialys.com>
wrote:
> Olivier,
>
> > Is there a flag or something to achieve same behaviour as command line ?
> I
> > looked carefully in the python api doc, but couldn't find it...
>
> Not exacly a flag, but:
>
> destDS = gdal.Open("dest.tif", gdal.GA_Update)
> gdal.Warp(destDS, "source.tif", cutlineDSName="cutline.shp")
>
> Cheers,
>
> 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/20191127/4f6583d3/attachment.html>
More information about the gdal-dev
mailing list