Api session items measurements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (35 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
api session items [[ | API Endpoint: /api/session/items/measurements/ | ||
==Limit Queries==version=100: | Edit items with events described at [[Api session event editor measurement]]. | ||
< | |||
Default Query: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=JSON&token=API_TOKEN</syntaxhighlight> | |||
Example Response: | |||
<syntaxhighlight lang="text" copy>[ ]</syntaxhighlight> | |||
==Limit Queries== | |||
version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?version=100&token=API_TOKEN</syntaxhighlight> | |||
Pseudo-Mercator: | Pseudo-Mercator: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
Degrees: | Degrees: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?crs=4326&token=API_TOKEN</syntaxhighlight> | ||
Amersfoort / RD New: | Amersfoort / RD New: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?crs=28992&token=API_TOKEN</syntaxhighlight> | ||
Local Coordinates: | Local Coordinates: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?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/measurements/?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/measurements-foo/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
< | attributes: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/attributes/?token=API_TOKEN</syntaxhighlight> | |||
< | max version: | ||
== | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/version/?token=API_TOKEN</syntaxhighlight> | ||
< | count: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/count/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | |||
HTML: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=HTML&token=API_TOKEN&crs=3857</syntaxhighlight> | |||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=JSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GEOJSON: | GEOJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=GEOJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GPKG: | GPKG: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=GPKG&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
DXF: | DXF: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=DXF&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=CSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=SSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=SMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=ZIPJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?f=ZIPSMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
{{article end|seealso=*[[Api Content Items]]}} | ==Api Model ItemMeasurement== | ||
API Model description of ItemMeasurement | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| itemID | |||
| int | |||
| | |||
|- | |||
| key | |||
| String | |||
| | |||
|- | |||
| mapLink | |||
| MapLink | |||
| [[Maplink]] | |||
|- | |||
| maqMax | |||
| double | |||
| | |||
|- | |||
| maqMin | |||
| double | |||
| | |||
|- | |||
| max | |||
| double | |||
| | |||
|- | |||
| min | |||
| double | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| overlayIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Overlay]]s ID | |||
|- | |||
| overlayMaqValues | |||
| Map<int,float[]> | |||
| | |||
|- | |||
| overlayValues | |||
| Map<int,float[]> | |||
| | |||
|- | |||
| point | |||
| Point | |||
| [[Point]] | |||
|- | |||
| save | |||
| boolean | |||
| | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| sum | |||
| boolean | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model LineMeasurement== | |||
API Model description of LineMeasurement | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| distances | |||
| double[] | |||
| | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| lineSegment | |||
| LineSegment | |||
| | |||
|- | |||
| lineString | |||
| LineString | |||
| | |||
|- | |||
| maqMax | |||
| double | |||
| | |||
|- | |||
| maqMin | |||
| double | |||
| | |||
|- | |||
| maqValues | |||
| Map<int,java.util.ArrayList<float[]>> | |||
| | |||
|- | |||
| max | |||
| double | |||
| | |||
|- | |||
| min | |||
| double | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| overlayIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Overlay]]s ID | |||
|- | |||
| save | |||
| boolean | |||
| | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| sum | |||
| boolean | |||
| | |||
|- | |||
| values | |||
| Map<int,java.util.ArrayList<float[]>> | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model LineString== | |||
API Model description of LineString | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|} | |||
==Api Model Measurement== | |||
API Model description of Measurement | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| overlayIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Overlay]]s ID | |||
|- | |||
| save | |||
| boolean | |||
| | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| sum | |||
| boolean | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model Point== | |||
API Model description of Point | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| type | |||
| String | |||
| [[Point]] | |||
|- | |||
| coordinates | |||
| double[] | |||
| x, y, (optional) z | |||
|} | |||
==Api Model PointMeasurement== | |||
API Model description of PointMeasurement | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| maqMax | |||
| double | |||
| | |||
|- | |||
| maqMin | |||
| double | |||
| | |||
|- | |||
| max | |||
| double | |||
| | |||
|- | |||
| min | |||
| double | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| overlayIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Overlay]]s ID | |||
|- | |||
| overlayMaqValues | |||
| Map<int,float[]> | |||
| | |||
|- | |||
| overlayValues | |||
| Map<int,float[]> | |||
| | |||
|- | |||
| point | |||
| Point | |||
| [[Point]] | |||
|- | |||
| save | |||
| boolean | |||
| | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| sum | |||
| boolean | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | |||
*[[Api session event editor measurement]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:14, 7 July 2026
API Endpoint: /api/session/items/measurements/
Edit items with events described at Api session event editor measurement.
Default Query:
https://engine.tygron.com/api/session/items/measurements/?f=JSON&token=API_TOKENExample Response:
[ ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/measurements/?version=100&token=API_TOKENPseudo-Mercator:
https://engine.tygron.com/api/session/items/measurements/?crs=3857&token=API_TOKENDegrees:
https://engine.tygron.com/api/session/items/measurements/?crs=4326&token=API_TOKENAmersfoort / RD New:
https://engine.tygron.com/api/session/items/measurements/?crs=28992&token=API_TOKENLocal Coordinates:
https://engine.tygron.com/api/session/items/measurements/?crs=LOCAL&token=API_TOKENbbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785:
https://engine.tygron.com/api/session/items/measurements/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKENFOO:
https://engine.tygron.com/api/session/items/measurements-foo/?crs=3857&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/measurements/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/measurements/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/measurements/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/measurements/?f=HTML&token=API_TOKEN&crs=3857JSON:
https://engine.tygron.com/api/session/items/measurements/?f=JSON&token=API_TOKEN&crs=3857GEOJSON:
https://engine.tygron.com/api/session/items/measurements/?f=GEOJSON&token=API_TOKEN&crs=3857GPKG:
https://engine.tygron.com/api/session/items/measurements/?f=GPKG&token=API_TOKEN&crs=3857DXF:
https://engine.tygron.com/api/session/items/measurements/?f=DXF&token=API_TOKEN&crs=3857CSV:
https://engine.tygron.com/api/session/items/measurements/?f=CSV&token=API_TOKEN&crs=3857SSV:
https://engine.tygron.com/api/session/items/measurements/?f=SSV&token=API_TOKEN&crs=3857SMILE:
https://engine.tygron.com/api/session/items/measurements/?f=SMILE&token=API_TOKEN&crs=3857ZIPJSON:
https://engine.tygron.com/api/session/items/measurements/?f=ZIPJSON&token=API_TOKEN&crs=3857ZIPSMILE:
https://engine.tygron.com/api/session/items/measurements/?f=ZIPSMILE&token=API_TOKEN&crs=3857Api Model ItemMeasurement
API Model description of ItemMeasurement
| Name | Type | Description |
|---|---|---|
| id | int | |
| itemID | int | |
| key | String | |
| mapLink | MapLink | Maplink |
| maqMax | double | |
| maqMin | double | |
| max | double | |
| min | double | |
| name | String | |
| overlayIDs | int[] | Overlays ID |
| overlayMaqValues | Map<int,float[]> | |
| overlayValues | Map<int,float[]> | |
| point | Point | Point |
| save | boolean | |
| sourceIDs | int[] | Sources ID |
| sum | boolean | |
| version | int |
Api Model LineMeasurement
API Model description of LineMeasurement
| Name | Type | Description |
|---|---|---|
| distances | double[] | |
| id | int | |
| lineSegment | LineSegment | |
| lineString | LineString | |
| maqMax | double | |
| maqMin | double | |
| maqValues | Map<int,java.util.ArrayList<float[]>> | |
| max | double | |
| min | double | |
| name | String | |
| overlayIDs | int[] | Overlays ID |
| save | boolean | |
| sourceIDs | int[] | Sources ID |
| sum | boolean | |
| values | Map<int,java.util.ArrayList<float[]>> | |
| version | int |
Api Model LineString
API Model description of LineString
| Name | Type | Description |
|---|
Api Model Measurement
API Model description of Measurement
| Name | Type | Description |
|---|---|---|
| id | int | |
| name | String | |
| overlayIDs | int[] | Overlays ID |
| save | boolean | |
| sourceIDs | int[] | Sources ID |
| sum | boolean | |
| version | int |
Api Model Point
API Model description of Point
| Name | Type | Description |
|---|---|---|
| type | String | Point |
| coordinates | double[] | x, y, (optional) z |
Api Model PointMeasurement
API Model description of PointMeasurement
| Name | Type | Description |
|---|---|---|
| id | int | |
| maqMax | double | |
| maqMin | double | |
| max | double | |
| min | double | |
| name | String | |
| overlayIDs | int[] | Overlays ID |
| overlayMaqValues | Map<int,float[]> | |
| overlayValues | Map<int,float[]> | |
| point | Point | Point |
| save | boolean | |
| sourceIDs | int[] | Sources ID |
| sum | boolean | |
| version | int |