Api session items heights: Difference between revisions
Jump to navigation
Jump to search
Created page with "api session items Height sector Endpoints. Manipulate items with event: editormap.==Limit Queries==version=100: <pre>https://engine.tygron.com/api/session/items/heights/?version=100&token=API_TOKEN</pre> Pseudo-Mercator: <pre>https://engine.tygron.com/api/session/items/heights/?crs=3857&token=API_TOKEN</pre> Degrees: <pre>https://engine.tygron.com/api/session/items/heights/?crs=4326&token=API_TOKEN</pre> Amersfoort / RD New: <pre>https://engine.tygron.com/api..." |
No edit summary |
||
| (49 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
api session items [[ | API Endpoint: /api/session/items/heights/ | ||
< | 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" : 12 | |||
}, { | |||
"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" : 11 | |||
} ]</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> | ||
== | ==Get Queries== | ||
< | attributes: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/attributes/?token=API_TOKEN</syntaxhighlight> | |||
< | max version: | ||
== | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/version/?token=API_TOKEN</syntaxhighlight> | ||
< | count: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/count/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | |||
HTML: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=HTML&token=API_TOKEN&crs=3857</syntaxhighlight> | |||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GEOJSON: | GEOJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=GEOJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GPKG: | GPKG: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=GPKG&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
DXF: | DXF: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=DXF&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=CSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=SSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=SMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKEN&crs=3857</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]]s ID | |||
|- | |||
| square | |||
| MultiPolygon | |||
| [[MultiPolygon]] | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model MultiPolygon== | |||
API Model description of MultiPolygon | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| type | |||
| String | |||
| [[MultiPolygon]] | |||
|- | |||
| coordinates | |||
| double[][][][] | |||
| array of [[Polygon]]s; [[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 07:06, 14 July 2026
API 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" : 12
}, {
"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" : 11
} ]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_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/heights/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/heights/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/heights/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/heights/?f=HTML&token=API_TOKEN&crs=3857JSON:
https://engine.tygron.com/api/session/items/heights/?f=JSON&token=API_TOKEN&crs=3857GEOJSON:
https://engine.tygron.com/api/session/items/heights/?f=GEOJSON&token=API_TOKEN&crs=3857GPKG:
https://engine.tygron.com/api/session/items/heights/?f=GPKG&token=API_TOKEN&crs=3857DXF:
https://engine.tygron.com/api/session/items/heights/?f=DXF&token=API_TOKEN&crs=3857CSV:
https://engine.tygron.com/api/session/items/heights/?f=CSV&token=API_TOKEN&crs=3857SSV:
https://engine.tygron.com/api/session/items/heights/?f=SSV&token=API_TOKEN&crs=3857SMILE:
https://engine.tygron.com/api/session/items/heights/?f=SMILE&token=API_TOKEN&crs=3857ZIPJSON:
https://engine.tygron.com/api/session/items/heights/?f=ZIPJSON&token=API_TOKEN&crs=3857ZIPSMILE:
https://engine.tygron.com/api/session/items/heights/?f=ZIPSMILE&token=API_TOKEN&crs=3857Api 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[] | Sources ID |
| square | MultiPolygon | 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] |