Api session items measurements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (23 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: /api/session/items/measurements/ | |||
Edit items with | Edit items with events described at [[Api session event editor measurement]]. | ||
Default Query: | Default Query: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/? | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?token=API_TOKEN</syntaxhighlight> | ||
Example Response: | Example Response: | ||
<syntaxhighlight lang="text" copy>[ ]</syntaxhighlight> | <syntaxhighlight lang="text" copy>[ ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
Version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?version=100&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?version=100&token=API_TOKEN</syntaxhighlight> | ||
Pseudo-Mercator: | Pseudo-Mercator: | ||
| Line 18: | Line 18: | ||
Local Coordinates: | Local Coordinates: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/?crs=LOCAL&token=API_TOKEN</syntaxhighlight> | <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: | |||
<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> | <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> | <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> | <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/ | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/count/?token=API_TOKEN</syntaxhighlight> | ||
Specific Item by ID: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/measurements/{id}/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
| Line 56: | Line 60: | ||
!Description | !Description | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|itemID | | itemID | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|key | | key | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|mapLink | | mapLink | ||
|MapLink | | MapLink | ||
| | | [[Maplink]] | ||
|- | |- | ||
|maqMax | | maqMax | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|maqMin | | maqMin | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|max | | max | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|min | | min | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|overlayIDs | | overlayIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Overlay]] ID | | [[Overlay]]s ID | ||
|- | |- | ||
|overlayMaqValues | | overlayMaqValues | ||
|Map<int,float[]> | | Map<int,float[]> | ||
| | | | ||
|- | |- | ||
|overlayValues | | overlayValues | ||
|Map<int,float[]> | | Map<int,float[]> | ||
| | | | ||
|- | |- | ||
|point | | point | ||
|Point | | Point | ||
| | | [[Point]] | ||
|- | |- | ||
|save | | save | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|sourceIDs | | sourceIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Source]] ID | | [[Source]]s ID | ||
|- | |- | ||
|sum | | sum | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
| Line 133: | Line 137: | ||
!Description | !Description | ||
|- | |- | ||
|distances | | distances | ||
|double[] | | double[] | ||
| | | | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|lineSegment | | lineSegment | ||
|LineSegment | | LineSegment | ||
| | | | ||
|- | |- | ||
|lineString | | lineString | ||
|LineString | | LineString | ||
| | | | ||
|- | |- | ||
|maqMax | | maqMax | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|maqMin | | maqMin | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|maqValues | | maqValues | ||
|Map<int,java.util.ArrayList<float[]>> | | Map<int,java.util.ArrayList<float[]>> | ||
| | | | ||
|- | |- | ||
|max | | max | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|min | | min | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|overlayIDs | | overlayIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Overlay]] ID | | [[Overlay]]s ID | ||
|- | |- | ||
|save | | save | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|sourceIDs | | sourceIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Source]] ID | | [[Source]]s ID | ||
|- | |- | ||
|sum | | sum | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|values | | values | ||
|Map<int,java.util.ArrayList<float[]>> | | Map<int,java.util.ArrayList<float[]>> | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
| Line 215: | Line 219: | ||
!Description | !Description | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|overlayIDs | | overlayIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Overlay]] ID | | [[Overlay]]s ID | ||
|- | |- | ||
|save | | save | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|sourceIDs | | sourceIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Source]] ID | | [[Source]]s ID | ||
|- | |- | ||
|sum | | sum | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
| Line 251: | Line 255: | ||
!Type | !Type | ||
!Description | !Description | ||
|- | |||
| type | |||
| String | |||
| [[Point]] | |||
|- | |||
| coordinates | |||
| double[] | |||
| x, y, (optional) z | |||
|} | |} | ||
| Line 261: | Line 273: | ||
!Description | !Description | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|maqMax | | maqMax | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|maqMin | | maqMin | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|max | | max | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|min | | min | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|overlayIDs | | overlayIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Overlay]] ID | | [[Overlay]]s ID | ||
|- | |- | ||
|overlayMaqValues | | overlayMaqValues | ||
|Map<int,float[]> | | Map<int,float[]> | ||
| | | | ||
|- | |- | ||
|overlayValues | | overlayValues | ||
|Map<int,float[]> | | Map<int,float[]> | ||
| | | | ||
|- | |- | ||
|point | | point | ||
|Point | | Point | ||
| | | [[Point]] | ||
|- | |- | ||
|save | | save | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|sourceIDs | | sourceIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Source]] ID | | [[Source]]s ID | ||
|- | |- | ||
|sum | | sum | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
| Line 323: | Line 335: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 09:52, 23 September 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/?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_TOKENSpecific Item by ID:
https://engine.tygron.com/api/session/items/measurements/{id}/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/measurements/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/measurements/?f=JSON&token=API_TOKENGEOJSON:
https://engine.tygron.com/api/session/items/measurements/?f=GEOJSON&token=API_TOKENGPKG:
https://engine.tygron.com/api/session/items/measurements/?f=GPKG&token=API_TOKENDXF:
https://engine.tygron.com/api/session/items/measurements/?f=DXF&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/measurements/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/measurements/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/measurements/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/measurements/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/measurements/?f=ZIPSMILE&token=API_TOKENApi 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 |