TransDEM Forum
https://forum.transdem.de/

Question: How to install OSM API Key?
https://forum.transdem.de/viewtopic.php?f=7&t=622
Page 1 of 1

Author:  DmitryKz [ 29 Dec 2021 13:11 ]
Post subject:  Question: How to install OSM API Key?

Hi.

I registered on the thunderforest.com and received the API key.
Full URL with it looks like this:
Code:
https://tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=myapikeymyapikeymyapikeymyapikey

Now I don’t understand how to enter it in TransDEM?

I can enter the API key into the appropriate dialog box.
But I can't press the OK button in the URL Composition window.

I would appreciate for help.

Author:  geophil [ 29 Dec 2021 16:24 ]
Post subject:  Re: Question: How to install OSM API Key?

Well, for OSM you don't need a key. The parameters for OSM map tile access are included in the sample settings. And Open Topo Map, the alternative renderer for OSM, is also part of those settings.

If you want to try out some other map tile data source that requires am API key, it has to match the concept that works for Google maps and Microsoft Bing maps. If it does, you should create your settings following the examples for Google and Bing. But I have to admit, I never tried this myself with other providers.

Author:  DmitryKz [ 29 Dec 2021 19:37 ]
Post subject:  Re: Question: How to install OSM API Key?

I am trying to render the terrain above 60°N.
I would like to be able to load tiles from OSM Thunderforest Outfoors, which have isolines with numbers indicating the height of the terrain.
This requires an API key.
Image

For example, the screenshot above is from SAS.Planet, which also uses its own API key.

I tried to add a description of the server based on the OSM records, since apparently their settings are similar, except that OSM does not require an API, but OSM Thunderforest does. The watermark appears only in the preview window and in the loaded tile.
Code:
    <URL name="Thunderforest" guid="5f635350-8f50-408e-b422-857ffc03c633" addr="https://tile.thunderforest.com" prefix="outdoors/" standalone="1" type="6" postfix=".png" >
      <Matrix order="2" prefixClm="/" prefixRow="/" minZoom="1" maxZoom="18" />
      <Mercator origLat="90" origLon="-180" signLat="-1" signLon="1" projection="4" />
    </URL>

Image

I tried adding the API key information as well (and API Key value in the file WebTileMapServerKeys.xml of course), but in this case nothing loads, just a black screen in the preview window.
Code:
    <URL name="Thunder" guid="5f635350-8f50-408e-b422-857ffc03c633" addr="https://tile.thunderforest.com" prefix="outdoors/" standalone="1" type="6" postfix=".png" apikey="1">
      <Matrix order="2" prefixClm="/" prefixRow="/" minZoom="1" maxZoom="18" />
      <ApiKey prefixKey="?apikey=" />
      <Mercator origLat="90" origLon="-180" signLat="-1" signLon="1" projection="4" />
    </URL>


Maybe you can just show me which record I need to enter for API Key in xml-file? It seems to me that this task should be quite trivial?

Author:  geophil [ 29 Dec 2021 21:55 ]
Post subject:  Re: Question: How to install OSM API Key?

It seems that API keys in the TransDEM map tile client are only supported for the Bing/Google REST-style interfaces. We can emulate map tiles this way but these APIs are not addressing quad-trees.

However, if you want to see contour lines, Open Topo Map has them as well:

Image

Author:  DmitryKz [ 29 Dec 2021 22:44 ]
Post subject:  Re: Question: How to install OSM API Key?

Wow. I didn't see what's under my nose.
Thank you. Happy New Year)

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/