<div dir="ltr">Hi,<div>in QGIS I have set this XYZ source: <a href="https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png">https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png</a></div><div>QGIS renders it properly.</div><div><br></div><div>I have created this GDAL source</div><div><br></div><div><GDAL_WMS><br>    <Service name="TMS"><br>        <ServerUrl><a href="https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png">https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png</a></ServerUrl><br>    </Service><br>    <DataWindow><br>        <UpperLeftX>-20037508.34</UpperLeftX><br>        <UpperLeftY>20037508.34</UpperLeftY><br>        <LowerRightX>20037508.34</LowerRightX><br>        <LowerRightY>-20037508.34</LowerRightY><br>        <TileLevel>18</TileLevel><br>        <TileCountX>1</TileCountX><br>        <TileCountY>1</TileCountY><br>        <YOrigin>top</YOrigin><br>    </DataWindow><br>    <Projection>EPSG:900913</Projection><br>    <BlockSizeX>256</BlockSizeX><br>    <BlockSizeY>256</BlockSizeY><br>    <BandsCount>3</BandsCount><br>    <Cache /><br>       <ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes><br></GDAL_WMS><br></div><div><br></div><div>But if run</div><div><br></div><div>gdal_translate --debug ON -of PNG -projwin 5203413 2847209 5221042 2829459 -outsize 512 512 osm-no-labels.xml openstreetmap.png<br></div><div><br></div><div>I have a black PNG. </div><div><br></div><div>The debug shows me a wrong HTTP call (the below one), but I do not know how to modify my xml source to be able to run right requests.</div><div><br></div><div>HTTP: Request [1] <a href="https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png/1.0.0//12/2580/1758.jpg">https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png/1.0.0//12/2580/1758.jpg</a><br></div><div><br></div><div>What's wrong in my settings?</div><div><br></div><div>Thank you</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="font-size:small">___________________</span><br></div><div dir="ltr"><span style="font-size:small"><br></span></div><div dir="ltr">Andrea Borruso<br>
website: <a href="https://medium.com/tantotanto" target="_blank">https://medium.com/tantotanto</a><br>38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br><span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e cosa,<br>
 in mezzo all’inferno, non è inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>