<div dir="ltr"><div>Oh, that is one step further.</div><div><br></div><div>There are two things:</div><div> - the difference between center of the pixel and corner of the pixel (that I was "reporting" in my previous email)</div><div> - row from top down or bottom up.</div><div><br></div><div>Tiffs usually have the rows ordered top down. Technically can be also bottom up, but it may be a problem with some software. It is a strange thing. Avoid that.<br></div><div>In the top-down mode (that is the usual one), in the geotransform the pixel size in the Y direction is negative, because the Y direction in the image goes in the oposite direction as the CRS.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Aug 2024 at 07:00, Stefan Gofferje <<a href="mailto:lists@home.gofferje.net">lists@home.gofferje.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/1/24 11:11, Javier Jimenez Shaw wrote:<br>
> IIRC the x,y for SetGeoTransform are for the top left corner of the top <br>
> left pixel. Not the center of the pixel. It can be confusing.<br>
> (that means that it does not change with the pixelsize if you downscale <br>
> or upscale ;)<br>
<br>
Oh, yeah, that would have caused some confusion because the data starts <br>
with the lower left corner...<br>
<br>
-- <br>
  (o_   Stefan Gofferje            | SCLT, MCP, CCSA<br>
  //\   Reg'd Linux User #247167   | VCP #2263<br>
  V_/_  <a href="https://www.gofferje.net" rel="noreferrer" target="_blank">https://www.gofferje.net</a>   | <a href="https://www.saakeskus.fi" rel="noreferrer" target="_blank">https://www.saakeskus.fi</a><br>
<br>
</blockquote></div>