<div dir="ltr"><div>The origin of this question is this ticket in QGIS:</div><div><br></div><div><a href="https://github.com/qgis/QGIS/issues/56288" target="_blank">https://github.com/qgis/QGIS/issues/56288</a></div><div><br></div><div>The summary is that with rasters ordered bottom-up, QGIS is doing a Warped VRT. But Warp us using square pixels... that is distorting too much the image in some cases (and I would say it is more expensive, but that is not the problem).</div><div>I know, looking at gdalwarp, that the warp can be done with different pixel size for X and Y. </div><div>for instance, with this command:</div><div>gdalwarp -tr 0.2 0.1 <a href="http://bottom-up.xyz" target="_blank">bottom-up.xyz</a> <a href="http://warped.xyz" target="_blank">warped.xyz</a></div><div><br></div><div>I want to provide the pixel size of the original image. And I could use "GDALWarpAppOptions" dfXRes and dfYRes for that.</div><div><br></div><div>However in the code in QGIS (mentioned in the ticket)<br></div><div><a href="https://github.com/qgis/QGIS/blob/3a18496f7c25a00cb26cb5abe0e53b2a13b3de68/src/core/providers/gdal/qgsgdalprovider.cpp#L3590" target="_blank">https://github.com/qgis/QGIS/blob/3a18496f7c25a00cb26cb5abe0e53b2a13b3de68/src/core/providers/gdal/qgsgdalprovider.cpp#L3590</a></div><div>I only have access to "GDALWarpOptions" (see that there is no "App" in the name).</div><div><br></div><div>I don't see how to provide that data to "GDALAutoCreateWarpedVRT".</div><div><br></div><div>Any idea?</div><div><br></div><div>Thanks.</div><div>Javier<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div><div>.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__</div></div></div></div></div>