Api session event editor measure import levees: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
API Event to Import Measure Levee Collection
API Event to Import [[Measure]] [[Levee]] Collection
{|class=wikitable
{|class=wikitable
!Name
!Name
Line 10: Line 10:
|REQUIRED
|REQUIRED
|(GeometryCollection with crs: EPSG:3857)
|(GeometryCollection with crs: EPSG:3857)
|Collection of Levee Geometries
|Collection of [[Levee]] Geometries
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(LEVEE Integer ID or multiple values in array [1, 2, 3])
|(LEVEE Integer ID or multiple values in array [1, 2, 3])
|Levee IDs
|[[Levee]] IDs
|
|
|-
|-
Line 28: Line 28:
|REQUIRED
|REQUIRED
|(Floating point number or multiple values in array [1.0, 2.0, 3.0])
|(Floating point number or multiple values in array [1.0, 2.0, 3.0])
|Override Heights
|Override [[Height]]s
|
|
|-
|-
Line 34: Line 34:
|REQUIRED
|REQUIRED
|(Boolean or multiple values in array [true, false, true])
|(Boolean or multiple values in array [true, false, true])
|Override relative height
|Override relative [[Height]]
|
|
|-
|-
Line 40: Line 40:
|OPTIONAL
|OPTIONAL
|(MEASURE Integer ID)
|(MEASURE Integer ID)
|Set for existing Measure ID (optional)
|Set for existing [[Measure]] ID (optional)
|
|
|-
|-
Line 52: Line 52:
|OPTIONAL
|OPTIONAL
|(SOURCE Integer ID)
|(SOURCE Integer ID)
|Source (optional)
|[[Source]] (optional)
|
|
|}
|}
Line 74: Line 74:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799367.295954103 ], [ 658790.6893498257, 6799367.295954103 ], [ 658790.6893498257, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799349.214678483 ], [ 658661.6468647612, 6799349.214678483 ], [ 658661.6468647612, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799329.236483161 ], [ 658745.369456263, 6799329.236483161 ], [ 658745.369456263, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799346.2620407045 ], [ 658769.6031909193, 6799346.2620407045 ], [ 658769.6031909193, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799387.664032432 ], [ 658773.8795412544, 6799387.664032432 ], [ 658773.8795412544, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799440.725870055 ], [ 658686.7852432218, 6799440.725870055 ], [ 658686.7852432218, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]
}, [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]

Revision as of 14:14, 30 March 2026

API Event to Import Measure Levee Collection

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) Collection of Levee Geometries
1 REQUIRED (LEVEE Integer ID or multiple values in array [1, 2, 3]) Levee IDs
2 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Override Angles
3 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Override Heights
4 REQUIRED (Boolean or multiple values in array [true, false, true]) Override relative Height
5 OPTIONAL (MEASURE Integer ID) Set for existing Measure ID (optional)
6 OPTIONAL (Floating point number) Buffer for Points and Lines to make Polygons (optional)
7 OPTIONAL (SOURCE Integer ID) Source (optional)

Response Codes

Response Code: Description
200 Integer (Measure ID)
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_levees/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799349.214678483 ], [ 658661.6468647612, 6799349.214678483 ], [ 658661.6468647612, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799346.2620407045 ], [ 658769.6031909193, 6799346.2620407045 ], [ 658769.6031909193, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799440.725870055 ], [ 658686.7852432218, 6799440.725870055 ], [ 658686.7852432218, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]