Api session event editor measure import terrains: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 34: Line 34:
|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 Inner [[Height]]s
|Override Inner [[Height sector]]
|
|
|-
|-
Line 40: Line 40:
|REQUIRED
|REQUIRED
|(Boolean or multiple values in array [true, false, true])
|(Boolean or multiple values in array [true, false, true])
|[[Height]] Relative
|Height Relative
|
|
|-
|-
Line 80: Line 80:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799435.962292749 ], [ 658731.1907481637, 6799435.962292749 ], [ 658731.1907481637, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799392.231062533 ], [ 658680.2838264381, 6799392.231062533 ], [ 658680.2838264381, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799359.592770302 ], [ 658779.5104210918, 6799359.592770302 ], [ 658779.5104210918, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799304.03683976 ], [ 658667.0731034508, 6799304.03683976 ], [ 658667.0731034508, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799441.200116565 ], [ 658796.9244082901, 6799441.200116565 ], [ 658796.9244082901, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799401.73218249 ], [ 658646.9094538457, 6799401.73218249 ], [ 658646.9094538457, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, "BUILDING", [ true, false, true ], [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]
}, "GRID", [ true, false, true ], [ 1, 2, 3 ], [ 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]]}}


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

Revision as of 14:53, 30 March 2026

API Event to Import Measure Terrain Collection

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) Collection of Terrain Geometries
1 REQUIRED (Enumeration) Measure Edit Type BUILDING, FLATTEN, GEOTIFF, GRID, LEVEE, RAISE, UPGRADE or WATER
2 REQUIRED (Boolean or multiple values in array [true, false, true]) Is Inner
3 REQUIRED (TERRAIN_TYPE Integer ID or multiple values in array [1, 2, 3]) Terrain Type IDs
4 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Override Inner Height sector
5 REQUIRED (Boolean or multiple values in array [true, false, true]) Height Relative
6 OPTIONAL (MEASURE Integer ID) Set for existing Measure ID (optional)
7 OPTIONAL (Floating point number) Buffer for Points and Lines to make Polygons (optional)
8 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_terrains/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799392.231062533 ], [ 658680.2838264381, 6799392.231062533 ], [ 658680.2838264381, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799304.03683976 ], [ 658667.0731034508, 6799304.03683976 ], [ 658667.0731034508, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799401.73218249 ], [ 658646.9094538457, 6799401.73218249 ], [ 658646.9094538457, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, "GRID", [ true, false, true ], [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]