<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Dear list,<br><br>When I use gdalwarp from command line and set output to an existing file, the contents get mosaic-ed in the existing file (as expected and documented).<div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap">$> gdalwarp -cutline cutline.shp source.tif dest.tif<br></div><div><br></div><div>But when doing the from python, the existing destination file get overwritten.</div><div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div>gdal.Warp(<span style="color:rgb(206,145,120)">"dest.tif"</span>, <span style="color:rgb(206,145,120)">"source.tif"</span>, <span style="color:rgb(156,220,254)">cutlineDSName</span>=<span style="color:rgb(206,145,120)">"cutline.shp"</span>)</div></div></div><div><br></div><div>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...<br></div></div><div><br></div><div>Cheers !!</div><div><br></div><div>Olivier</div></div>
</div></div>