Re: [gdal-dev] Not able to use gdal_translate and a TMS source

2021-10-05 Thread andy
You are right, I don't have to drink beer in the afternoon:)

Thank you very much

On Tue, 5 Oct 2021 at 15:57, Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Hi,
>
>
>
> There is not so much wrong, you should just read
> https://gdal.org/drivers/raster/wms.html more carefully and write server
> URL this way:
>
>
>
>   https://tiles.wmflabs.org/osm-no-labels/${z}/${x}/${y}.png
> 
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
>
>
>
>
> *Lähettäjä:* gdal-dev  *Puolesta *andy
> *Lähetetty:* tiistai 5. lokakuuta 2021 16.42
> *Vastaanottaja:* gdal-dev@lists.osgeo.org
> *Aihe:* [gdal-dev] Not able to use gdal_translate and a TMS source
>
>
>
> Hi,
>
> in QGIS I have set this XYZ source:
> https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png
>
> QGIS renders it properly.
>
>
>
> I have created this GDAL source
>
>
>
> 
> 
> https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png
> 
> 
> 
> -20037508.34
> 20037508.34
> 20037508.34
> -20037508.34
> 18
> 1
> 1
> top
> 
> EPSG:900913
> 256
> 256
> 3
> 
> 204,404
> 
>
>
>
> But if run
>
>
>
> gdal_translate --debug ON -of PNG -projwin 5203413 2847209 5221042 2829459
> -outsize 512 512 osm-no-labels.xml openstreetmap.png
>
>
>
> I have a black PNG.
>
>
>
> 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.
>
>
>
> HTTP: Request [1]
> https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png/1.0.0//12/2580/1758.jpg
> 
>
>
>
> What's wrong in my settings?
>
>
>
> Thank you
>
>
>
> --
>
> ___
>
>
>
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___
>
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
>


-- 
___

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Not able to use gdal_translate and a TMS source

2021-10-05 Thread Rahkonen Jukka (MML)
Hi,

There is not so much wrong, you should just read 
https://gdal.org/drivers/raster/wms.html more carefully and write server URL 
this way:

  
https://tiles.wmflabs.org/osm-no-labels/${z}/${x}/${y}.png

-Jukka Rahkonen-




Lähettäjä: gdal-dev  Puolesta andy
Lähetetty: tiistai 5. lokakuuta 2021 16.42
Vastaanottaja: gdal-dev@lists.osgeo.org
Aihe: [gdal-dev] Not able to use gdal_translate and a TMS source

Hi,
in QGIS I have set this XYZ source: 
https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png
QGIS renders it properly.

I have created this GDAL source




https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png


-20037508.34
20037508.34
20037508.34
-20037508.34
18
1
1
top

EPSG:900913
256
256
3

204,404


But if run

gdal_translate --debug ON -of PNG -projwin 5203413 2847209 5221042 2829459 
-outsize 512 512 osm-no-labels.xml openstreetmap.png

I have a black PNG.

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.

HTTP: Request [1] 
https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png/1.0.0//12/2580/1758.jpg

What's wrong in my settings?

Thank you

--
___

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Not able to use gdal_translate and a TMS source

2021-10-05 Thread andy
Hi,
in QGIS I have set this XYZ source:
https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png
QGIS renders it properly.

I have created this GDAL source



https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png



-20037508.34
20037508.34
20037508.34
-20037508.34
18
1
1
top

EPSG:900913
256
256
3

204,404


But if run

gdal_translate --debug ON -of PNG -projwin 5203413 2847209 5221042 2829459
-outsize 512 512 osm-no-labels.xml openstreetmap.png

I have a black PNG.

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.

HTTP: Request [1]
https://tiles.wmflabs.org/osm-no-labels/{z}/{x}/{y}.png/1.0.0//12/2580/1758.jpg

What's wrong in my settings?

Thank you

-- 
___

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio"

Italo Calvino
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev