Api session items heights: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (26 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Api session items [[Height sector]] Endpoint: /api/session/items/heights/ | |||
==Limit Queries==version=100: | Edit items with events described at [[Api session event editor map]]. | ||
< | |||
Default Query: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKEN</syntaxhighlight> | |||
Example Response: | |||
<syntaxhighlight lang="text" copy>[ { | |||
"id" : 0, | |||
"name" : "1", | |||
"pointAreaM2" : 16.0, | |||
"pointWidth" : [ 125, 0 ], | |||
"sourceIDs" : [ 8 ], | |||
"square" : { | |||
"type" : "MultiPolygon", | |||
"coordinates" : [ [ [ [ 657093.832562376, 6800274.005242179 ], [ 657093.832562376, 6799461.8964563515 ], [ 657905.9006092999, 6799461.8964563515 ], [ 657905.9006092999, 6800274.005242179 ], [ 657093.832562376, 6800274.005242179 ] ] ] ] | |||
}, | |||
"version" : 6 | |||
}, { | |||
"id" : 1, | |||
"name" : "2", | |||
"pointAreaM2" : 16.0, | |||
"pointWidth" : [ 125, 0 ], | |||
"sourceIDs" : [ 8 ], | |||
"square" : { | |||
"type" : "MultiPolygon", | |||
"coordinates" : [ [ [ [ 657905.9006092999, 6800274.005242179 ], [ 657905.9006092999, 6799461.8964563515 ], [ 658717.9686562237, 6799461.8964563515 ], [ 658717.9686562237, 6800274.005242179 ], [ 657905.9006092999, 6800274.005242179 ] ] ] ] | |||
}, | |||
"version" : 3 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | |||
version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?version=100&token=API_TOKEN</syntaxhighlight> | |||
Pseudo-Mercator: | Pseudo-Mercator: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
Degrees: | Degrees: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?crs=4326&token=API_TOKEN</syntaxhighlight> | ||
Amersfoort / RD New: | Amersfoort / RD New: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?crs=28992&token=API_TOKEN</syntaxhighlight> | ||
Local Coordinates: | Local Coordinates: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?crs=LOCAL&token=API_TOKEN</syntaxhighlight> | ||
bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKEN</syntaxhighlight> | ||
FOO: | FOO: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights-foo/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
== | ==Show Queries== | ||
< | max version: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/version/?token=API_TOKEN</syntaxhighlight> | |||
size: | size: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/size/?token=API_TOKEN</syntaxhighlight> | ||
== | ==Formats== | ||
< | HTML: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=HTML&token=API_TOKEN</syntaxhighlight> | |||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
GEOJSON: | GEOJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=GEOJSON&token=API_TOKEN</syntaxhighlight> | ||
GPKG: | GPKG: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=GPKG&token=API_TOKEN</syntaxhighlight> | ||
DXF: | DXF: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=DXF&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
{{article end|seealso=*[[Api Content Items]]}} | ==Api Model GeometryCollection== | ||
API Model description of GeometryCollection | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|} | |||
==Api Model HeightSector== | |||
API Model description of HeightSector | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|changed | |||
|Boolean | |||
| | |||
|- | |||
|envelope | |||
|Envelope | |||
| | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|name | |||
|String | |||
| | |||
|- | |||
|pointAreaM2 | |||
|double | |||
| | |||
|- | |||
|pointWidth | |||
|int[] | |||
| | |||
|- | |||
|sourceIDs | |||
|int<nowiki>[]</nowiki> | |||
|[[Source]] ID | |||
|- | |||
|square | |||
|MultiPolygon | |||
| | |||
|- | |||
|version | |||
|int | |||
| | |||
|} | |||
==Api Model MultiPolygon== | |||
API Model description of MultiPolygon | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|type | |||
|String | |||
|[[#Api Model MultiPolygon|MultiPolygon]] | |||
|- | |||
|coordinates | |||
|double[][][][] | |||
|array of polygons; polygon is array of outer and optional inner rings; rings is array of coordinates; coordinates is array of [x,y,(optional) z] | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | |||
*[[Api session event editor map]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 12:14, 29 May 2026
Api session items Height sector Endpoint: /api/session/items/heights/
Edit items with events described at Api session event editor map.
Default Query:
https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKENExample Response:
[ {
"id" : 0,
"name" : "1",
"pointAreaM2" : 16.0,
"pointWidth" : [ 125, 0 ],
"sourceIDs" : [ 8 ],
"square" : {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 657093.832562376, 6800274.005242179 ], [ 657093.832562376, 6799461.8964563515 ], [ 657905.9006092999, 6799461.8964563515 ], [ 657905.9006092999, 6800274.005242179 ], [ 657093.832562376, 6800274.005242179 ] ] ] ]
},
"version" : 6
}, {
"id" : 1,
"name" : "2",
"pointAreaM2" : 16.0,
"pointWidth" : [ 125, 0 ],
"sourceIDs" : [ 8 ],
"square" : {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 657905.9006092999, 6800274.005242179 ], [ 657905.9006092999, 6799461.8964563515 ], [ 658717.9686562237, 6799461.8964563515 ], [ 658717.9686562237, 6800274.005242179 ], [ 657905.9006092999, 6800274.005242179 ] ] ] ]
},
"version" : 3
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/heights/?version=100&token=API_TOKENPseudo-Mercator:
https://engine.tygron.com/api/session/items/heights/?crs=3857&token=API_TOKENDegrees:
https://engine.tygron.com/api/session/items/heights/?crs=4326&token=API_TOKENAmersfoort / RD New:
https://engine.tygron.com/api/session/items/heights/?crs=28992&token=API_TOKENLocal Coordinates:
https://engine.tygron.com/api/session/items/heights/?crs=LOCAL&token=API_TOKENbbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785:
https://engine.tygron.com/api/session/items/heights/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKENFOO:
https://engine.tygron.com/api/session/items/heights-foo/?crs=3857&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/heights/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/heights/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/heights/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKENGEOJSON:
https://engine.tygron.com/api/session/items/heights/?f=GEOJSON&token=API_TOKENGPKG:
https://engine.tygron.com/api/session/items/heights/?f=GPKG&token=API_TOKENDXF:
https://engine.tygron.com/api/session/items/heights/?f=DXF&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/heights/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/heights/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/heights/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/heights/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKENApi Model GeometryCollection
API Model description of GeometryCollection
| Name | Type | Description |
|---|
Api Model HeightSector
API Model description of HeightSector
| Name | Type | Description |
|---|---|---|
| changed | Boolean | |
| envelope | Envelope | |
| id | int | |
| name | String | |
| pointAreaM2 | double | |
| pointWidth | int[] | |
| sourceIDs | int[] | Source ID |
| square | MultiPolygon | |
| version | int |
Api Model MultiPolygon
API Model description of MultiPolygon
| Name | Type | Description |
|---|---|---|
| type | String | MultiPolygon |
| coordinates | double[][][][] | array of polygons; polygon is array of outer and optional inner rings; rings is array of coordinates; coordinates is array of [x,y,(optional) z] |