Api session event editor measurement import
API Event to Import multiple Measurement
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (GeometryCollection with crs: EPSG:3857) | Measurement | |
| 1 | REQUIRED | (String or multiple values in array ["a", "b", "c"]) | Measurement Names | |
| 2 | REQUIRED | (OVERLAY Integer ID or multiple values in array [1, 2, 3]) | Overlay | |
| 3 | OPTIONAL | (SOURCE Integer ID) | Source (optional) |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editormeasurement/import/?crs=3857&f=JSON&token=API_TOKEN
with content:
[ {
"type" : "GeometryCollection",
"geometries" : [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.13470353 ], [ 658715.9920825975, 6799412.13470353 ], [ 658715.9920825975, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799422.1458230615 ], [ 658717.0104159283, 6799422.1458230615 ], [ 658717.0104159283, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799351.961054849 ], [ 658681.872231538, 6799351.961054849 ], [ 658681.872231538, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ]
}, [ "Measurement Name 1", "Measurement Name 2", "Measurement Name 3" ], [ 1, 2, 3 ], "" ]