Api session event editor measure import buildings: 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 Building Collection
API Event to Import [[Measure]] [[Building]] 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 Building geometries
|Collection of [[Building]] geometries
|
|
|-
|-
Line 16: Line 16:
|REQUIRED
|REQUIRED
|(String or multiple values in array ["a", "b", "c"])
|(String or multiple values in array ["a", "b", "c"])
|Building Names
|[[Building]] Names
|
|
|-
|-
Line 34: Line 34:
|REQUIRED
|REQUIRED
|(FUNCTION Integer ID or multiple values in array [1, 2, 3])
|(FUNCTION Integer ID or multiple values in array [1, 2, 3])
|[[Function]]
|[[Function]]s
|
|
|-
|-
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, 6799351.954558393 ], [ 658766.0463328738, 6799351.954558393 ], [ 658766.0463328738, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799434.187117884 ], [ 658791.7629037838, 6799434.187117884 ], [ 658791.7629037838, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799433.527720912 ], [ 658781.7972047119, 6799433.527720912 ], [ 658781.7972047119, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.001525192 ], [ 658752.2639139814, 6799412.001525192 ], [ 658752.2639139814, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799371.188963754 ], [ 658767.9758065533, 6799371.188963754 ], [ 658767.9758065533, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799316.496978461 ], [ 658668.287957249, 6799316.496978461 ], [ 658668.287957249, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Building Name 1", "Building Name 2", "Building Name 3" ], [ "Attribute Name 1", "Attribute Name 2", "Attribute Name 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], [ 1, 2, 3 ], "", "", "", "" ]
}, [ "Building Name 1", "Building Name 2", "Building Name 3" ], [ "Attribute Name 1", "Attribute Name 2", "Attribute Name 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], [ 1, 2, 3 ], "", "", "", "" ]

Revision as of 14:14, 30 March 2026

API Event to Import Measure Building Collection

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) Collection of Building geometries
1 REQUIRED (String or multiple values in array ["a", "b", "c"]) Building Names
2 REQUIRED (String or multiple values in array ["a", "b", "c"]) Attribute Names
3 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0] or matrix [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]) Attribute Values
4 REQUIRED (FUNCTION Integer ID or multiple values in array [1, 2, 3]) Functions
5 OPTIONAL (STAKEHOLDER Integer ID or multiple values in array [1, 2, 3]) Owners (optional)
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[] (Integer array)
300-600 Codes Overview

Example POST

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

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799434.187117884 ], [ 658791.7629037838, 6799434.187117884 ], [ 658791.7629037838, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.001525192 ], [ 658752.2639139814, 6799412.001525192 ], [ 658752.2639139814, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799316.496978461 ], [ 658668.287957249, 6799316.496978461 ], [ 658668.287957249, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Building Name 1", "Building Name 2", "Building Name 3" ], [ "Attribute Name 1", "Attribute Name 2", "Attribute Name 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], [ 1, 2, 3 ], "", "", "", "" ]