Api session items heights: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Api session items [[Height sector]] | Api session items [[Height sector]] Endpoint: /api/session/items/heights/ | ||
Edit items with | Edit items with events described at [[Api session event editor map]]. | ||
Default Query: | Default Query: | ||
| Line 16: | Line 16: | ||
"coordinates" : [ [ [ [ 657093.832562376, 6800274.005242179 ], [ 657093.832562376, 6799461.8964563515 ], [ 657905.9006092999, 6799461.8964563515 ], [ 657905.9006092999, 6800274.005242179 ], [ 657093.832562376, 6800274.005242179 ] ] ] ] | "coordinates" : [ [ [ [ 657093.832562376, 6800274.005242179 ], [ 657093.832562376, 6799461.8964563515 ], [ 657905.9006092999, 6799461.8964563515 ], [ 657905.9006092999, 6800274.005242179 ], [ 657093.832562376, 6800274.005242179 ] ] ] ] | ||
}, | }, | ||
"version" : | "version" : 6 | ||
}, { | }, { | ||
"id" : 1, | "id" : 1, | ||
| Line 27: | Line 27: | ||
"coordinates" : [ [ [ [ 657905.9006092999, 6800274.005242179 ], [ 657905.9006092999, 6799461.8964563515 ], [ 658717.9686562237, 6799461.8964563515 ], [ 658717.9686562237, 6800274.005242179 ], [ 657905.9006092999, 6800274.005242179 ] ] ] ] | "coordinates" : [ [ [ [ 657905.9006092999, 6800274.005242179 ], [ 657905.9006092999, 6799461.8964563515 ], [ 658717.9686562237, 6799461.8964563515 ], [ 658717.9686562237, 6800274.005242179 ], [ 657905.9006092999, 6800274.005242179 ] ] ] ] | ||
}, | }, | ||
"version" : | "version" : 3 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 70: | Line 70: | ||
ZIPSMILE: | ZIPSMILE: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==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]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor map]] | *[[Api session event editor map]] | ||
| Line 75: | Line 146: | ||
[[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] |