When I use this approach to generate a GeoTIFF, I have to add a correction in the y-direction using the
TileY xml element, otherwise gdal tries to retrieve the incorrect tiles and generates a blank image.
In the case of zoom level 12, it requires this correction:
<DataWindow> <TileY>-360</TileY> <TileLevel>12</TileLevel> </DataWindow>
The curious thing is that the correction changes depending on zoom level.
12 zoom requires -360 correction.
11 zoom requires -180 correction.
10 zoom requires -90 correction.
So there's a clear pattern. Could someone help me understand what may be causing the issue?
I tried setting the ESPG code in the command and the xml file, but it didn't help.