Api session event editor measure import levees: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import Measure Levee Collection {|class=wikitable !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..."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
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 [[Height]]s
|Override [[Height sector]]
|
|
|-
|-
Line 67: Line 67:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_levees/?crs=3857&f=HTML&token=API_TOKEN
Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_levees/?crs=3857&f=JSON&token=API_TOKEN


with content:  
with content:  
Line 74: Line 74:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799426.157420507 ], [ 658798.084041461, 6799426.157420507 ], [ 658798.084041461, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799339.789953419 ], [ 658722.8995334046, 6799339.789953419 ], [ 658722.8995334046, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799436.139323022 ], [ 658656.5405808822, 6799436.139323022 ], [ 658656.5405808822, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799419.889909416 ], [ 658726.2793606159, 6799419.889909416 ], [ 658726.2793606159, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799325.481542929 ], [ 658731.057569004, 6799325.481542929 ], [ 658731.057569004, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799313.4680196205 ], [ 658757.690152671, 6799313.4680196205 ], [ 658757.690152671, 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 ], "", "", "" ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor measure]]}}
{{article end|seealso=*[[Api session event editor measure]]
*[[Api session items measures]]
}}


[[Category:API]]
[[Category:API]]

Latest revision as of 12:07, 1 April 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 Height sector
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=JSON&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799339.789953419 ], [ 658722.8995334046, 6799339.789953419 ], [ 658722.8995334046, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799419.889909416 ], [ 658726.2793606159, 6799419.889909416 ], [ 658726.2793606159, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799313.4680196205 ], [ 658757.690152671, 6799313.4680196205 ], [ 658757.690152671, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]