Web terrain: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
API Endpoint: web/terrain. | API Endpoint: web/terrain.txt | ||
===GET terrain. | ===GET terrain.txt=== | ||
API Endpoint: web/terrain. | API Endpoint: web/terrain.txt | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 108: | Line 108: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | ||
===GET terrain | ===GET terrain.tex=== | ||
API Endpoint: web/terrain | API Endpoint: web/terrain.tex | ||
'''Parameters:''' | '''Parameters:''' | ||
| Line 123: | Line 123: | ||
| | | | ||
|- | |- | ||
| | | bbox | ||
| | | Query | ||
| | | String | ||
| | | | ||
|- | |- | ||
| | | crs | ||
| | | Query | ||
| | | String | ||
| | | EPSG:3857 | ||
|- | |- | ||
| | | id | ||
| | | Query | ||
| | | Integer | ||
| | | | ||
|- | |- | ||
| | | maptype | ||
| Query | | Query | ||
| | | [[Map Type]] | ||
| | | MAQUETTE | ||
|- | |- | ||
| width | | width | ||
| Line 157: | Line 157: | ||
| float | | float | ||
| 0 | | 0 | ||
|- | |||
| worlddatum | |||
| Query | |||
| boolean | |||
| false | |||
|- | |||
| decimation | |||
| Query | |||
| int | |||
| 16 | |||
|} | |||
===='''Examples==== | |||
'''Basic Query''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with width=16 and height=16''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
'''Basic Query''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with width=16 and height=16''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
'''Basic Query''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with width=16 and height=16''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
===GET terrain.bin=== | |||
API Endpoint: web/terrain.bin | |||
'''Parameters:''' | |||
{|class=wikitable | |||
!Name | |||
!Location | |||
!Type | |||
!Default value | |||
|- | |||
| format | |||
| Path | |||
| String | |||
| | |||
|- | |||
| bbox | |||
| Query | |||
| String | |||
| | |||
|- | |||
| crs | |||
| Query | |||
| String | |||
| EPSG:3857 | |||
|- | |||
| id | |||
| Query | |||
| Integer | |||
| | |||
|- | |- | ||
| maptype | | maptype | ||
| Line 162: | Line 249: | ||
| [[Map Type]] | | [[Map Type]] | ||
| MAQUETTE | | MAQUETTE | ||
|- | |||
| width | |||
| Query | |||
| int | |||
| 256 | |||
|- | |||
| height | |||
| Query | |||
| int | |||
| 256 | |||
|- | |||
| offset | |||
| Query | |||
| float | |||
| 0 | |||
|- | |- | ||
| worlddatum | | worlddatum | ||
| Line 175: | Line 277: | ||
===='''Examples==== | ===='''Examples==== | ||
'''Query | '''Basic Query''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKEN</syntaxhighlight> | ||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query | '''Query with width=16 and height=16''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | ||
'''Query | '''Query for MapType: CURRENT''': | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain/ | <syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | ||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
'''Basic Query''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with width=16 and height=16''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
'''Basic Query''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with BBOX (EPSG:3857)''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with width=16 and height=16''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query for MapType: CURRENT''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKEN</syntaxhighlight> | |||
'''Query with World instead of CRS Datum''': | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN</syntaxhighlight> | |||
{{article end | {{article end | ||
Revision as of 08:09, 19 June 2026
API Endpoint: web/terrain.txt
GET terrain.txt
API Endpoint: web/terrain.txt
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
| id | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Basic Query:
https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKENGET terrain.tex
API Endpoint: web/terrain.tex
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
| id | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Basic Query:
https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKENGET terrain.bin
API Endpoint: web/terrain.bin
Parameters:
| Name | Location | Type | Default value |
|---|---|---|---|
| format | Path | String | |
| bbox | Query | String | |
| crs | Query | String | EPSG:3857 |
| id | Query | Integer | |
| maptype | Query | Map Type | MAQUETTE |
| width | Query | int | 256 |
| height | Query | int | 256 |
| offset | Query | float | 0 |
| worlddatum | Query | boolean | false |
| decimation | Query | int | 16 |
Examples
Basic Query:
https://engine.tygron.com/web/terrain.txt?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.txt?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.txt?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.txt?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.txt?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.tex?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.tex?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.tex?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.tex?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.tex?worlddatum=true&token=WEB_TOKENBasic Query:
https://engine.tygron.com/web/terrain.bin?&token=WEB_TOKENQuery with BBOX (EPSG:3857):
https://engine.tygron.com/web/terrain.bin?&crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=WEB_TOKENQuery with width=16 and height=16:
https://engine.tygron.com/web/terrain.bin?width=16&height=16&token=WEB_TOKENQuery for MapType: CURRENT:
https://engine.tygron.com/web/terrain.bin?maptype=CURRENT&token=WEB_TOKENQuery with World instead of CRS Datum:
https://engine.tygron.com/web/terrain.bin?worlddatum=true&token=WEB_TOKEN