Api session event editor measurement import: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import multiple [[Measurement]]s {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(GeometryCollection with crs: EPSG:3857) |[[Measurement]]s | |- |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]) |Overlays | |- |3 |OPTIONAL |(SOURCE Integer ID) |Source (optional) | |} ===Response Codes=== {|c..."
 
No edit summary
Line 1: Line 1:
API Event to Import multiple [[[[Measure]]ment]]s
API Event to Import multiple Measurements
{|class=wikitable
{|class=wikitable
!Name
!Name
Line 10: Line 10:
|REQUIRED
|REQUIRED
|(GeometryCollection with crs: EPSG:3857)
|(GeometryCollection with crs: EPSG:3857)
|[[[[Measure]]ment]]s
|[[Measurement]]
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(String or multiple values in array ["a", "b", "c"])
|(String or multiple values in array ["a", "b", "c"])
|[[[[Measure]]ment]] Names
|Measurement Names
|
|
|-
|-
Line 22: Line 22:
|REQUIRED
|REQUIRED
|(OVERLAY Integer ID or multiple values in array [1, 2, 3])
|(OVERLAY Integer ID or multiple values in array [1, 2, 3])
|[[Overlay]]s
|[[Overlay]]
|
|
|-
|-
Line 28: Line 28:
|OPTIONAL
|OPTIONAL
|(SOURCE Integer ID)
|(SOURCE Integer ID)
|[[Source]] (optional)
|Source (optional)
|
|
|}
|}
Line 50: Line 50:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799320.123610025 ], [ 658729.9385392354, 6799320.123610025 ], [ 658729.9385392354, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799384.126697235 ], [ 658671.4858812178, 6799384.126697235 ], [ 658671.4858812178, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799410.034708745 ], [ 658768.0618857662, 6799410.034708745 ], [ 658768.0618857662, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799358.451017138 ], [ 658766.7235976249, 6799358.451017138 ], [ 658766.7235976249, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799351.946437823 ], [ 658736.9856657466, 6799351.946437823 ], [ 658736.9856657466, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799303.978372001 ], [ 658775.0911467804, 6799303.978372001 ], [ 658775.0911467804, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Measurement Name 1", "Measurement Name 2", "Measurement Name 3" ], [ 1, 2, 3 ], "" ]
}, [ "Measurement Name 1", "Measurement Name 2", "Measurement Name 3" ], [ 1, 2, 3 ], "" ]

Revision as of 13:55, 30 March 2026

API Event to Import multiple Measurements

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=HTML&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799384.126697235 ], [ 658671.4858812178, 6799384.126697235 ], [ 658671.4858812178, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799358.451017138 ], [ 658766.7235976249, 6799358.451017138 ], [ 658766.7235976249, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799303.978372001 ], [ 658775.0911467804, 6799303.978372001 ], [ 658775.0911467804, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Measurement Name 1", "Measurement Name 2", "Measurement Name 3" ], [ 1, 2, 3 ], "" ]