Api session event editor measure import terrains: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import Measure Terrain Collection {|class=wikitable !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 multi..."
 
No edit summary
Line 1: Line 1:
API Event to Import [[Measure]] [[Terrain]] Collection
API Event to Import Measure Terrain 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 [[Terrain]] Geometries
|Collection of Terrain Geometries
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(Enumeration)
|(Enumeration)
|[[Measure]] Edit Type
|Measure Edit Type
|BUILDING, FLATTEN, GEOTIFF, GRID, LEVEE, RAISE, UPGRADE  or  WATER
|BUILDING, FLATTEN, GEOTIFF, GRID, LEVEE, RAISE, UPGRADE  or  WATER
|-
|-
Line 28: Line 28:
|REQUIRED
|REQUIRED
|(TERRAIN_TYPE Integer ID or multiple values in array [1, 2, 3])
|(TERRAIN_TYPE Integer ID or multiple values in array [1, 2, 3])
|[[Terrain]] Type IDs
|Terrain Type IDs
|
|
|-
|-
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 Heights
|
|
|-
|-
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 46: Line 46:
|OPTIONAL
|OPTIONAL
|(MEASURE Integer ID)
|(MEASURE Integer ID)
|Set for existing [[Measure]] ID (optional)
|Set for existing Measure ID (optional)
|
|
|-
|-
Line 58: Line 58:
|OPTIONAL
|OPTIONAL
|(SOURCE Integer ID)
|(SOURCE Integer ID)
|[[Source]] (optional)
|Source (optional)
|
|
|}
|}
Line 80: Line 80:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799353.594913735 ], [ 658772.9294216395, 6799353.594913735 ], [ 658772.9294216395, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799447.0437454 ], [ 658699.4535047539, 6799447.0437454 ], [ 658699.4535047539, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799406.971608278 ], [ 658759.1258889779, 6799406.971608278 ], [ 658759.1258889779, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799307.707316583 ], [ 658710.5496025471, 6799307.707316583 ], [ 658710.5496025471, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799458.86906724 ], [ 658788.4058144778, 6799458.86906724 ], [ 658788.4058144778, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.152399226 ], [ 658687.030487772, 6799394.152399226 ], [ 658687.030487772, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, "FLATTEN", [ true, false, true ], [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]
}, "WATER", [ 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 13:54, 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 Heights
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, 6799447.0437454 ], [ 658699.4535047539, 6799447.0437454 ], [ 658699.4535047539, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799307.707316583 ], [ 658710.5496025471, 6799307.707316583 ], [ 658710.5496025471, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.152399226 ], [ 658687.030487772, 6799394.152399226 ], [ 658687.030487772, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, "WATER", [ true, false, true ], [ 1, 2, 3 ], [ 1.0, 2.0, 3.0 ], [ true, false, true ], "", "", "" ]