<div dir="ltr">Hello,<br><br>I have a question about how to properly set the -tr flag when using gdalwarp.<br>In particular, I'm using gdalwarp for resampling a GeoTiff from its original resolution to a target resolution. <br>Let's consider, for simplicity, the original pixel size equal to (5m, 5m) and the target resolution equal to (10m, 10m).<br><br>This is the command I use: gdalwarp -tr 10 -10 input.tif output.tif<br><br>I'm using a negative <yres> because when I open the GeoTiff file in QGIS, or if I use gdalinfo, I get a pixel size equal to (5, -5) for the source raster.<br><br>Is it correct to use a negative <yres> with gdalwarp? I also tried -tr 10 10, but the result seems to be the same as the case in which I use -tr 10 -10.<br>In both cases gdalinfo and QGIS display (10,-10) as the pixel size.<br><br>How does gdalwarp treat a negative yres value?<br><br><div>Thank you</div><div><br></div><div>Giovanni<br></div></div>
<br>
<div style="font-size:small;font-family:arial;background-color:rgb(255,255,255)"><span><span><span><span></span></span></span></span><b><div><font color="#ff0000"><b>Fai crescere le giovani ricercatrici e i giovani ricercatori</b><br></font></div></b><div><b><font color="#ff0000">con il 5 per mille alla Sapienza</font><br></b><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div>Scrivi il codice fiscale dell'Università <b>80209930587<br><a href="https://www.uniroma1.it/it/node/23149" target="_blank">Cinque per mille</a></b></div></div></div><div><br></div><div><img src="https://www.uniroma1.it/sites/default/files/field_galleria/footer_sapienza_romaexpo_.jpg"><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>