Api session event editor zoning import: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import Zone Collection {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(GeometryCollection with crs: EPSG:3857) |Collection of Zone geometries | |- |1 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |Zone 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,..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 40: Line 40:
|REQUIRED
|REQUIRED
|(true, false)
|(true, false)
|Import as category zone
|Import as category [[Zone]]
|true  or  false
|true  or  false
|-
|-
Line 67: Line 67:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editorzoning/import/?crs=3857&f=HTML&token=API_TOKEN
Example POST: https://engine.tygron.com/api/session/event/editorzoning/import/?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, 6799327.795898183 ], [ 658797.9768484789, 6799327.795898183 ], [ 658797.9768484789, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799459.159787497 ], [ 658714.3679465037, 6799459.159787497 ], [ 658714.3679465037, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799405.505023469 ], [ 658799.1689643717, 6799405.505023469 ], [ 658799.1689643717, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799316.027611575 ], [ 658761.6546688761, 6799316.027611575 ], [ 658761.6546688761, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799326.920503385 ], [ 658644.0152433264, 6799326.920503385 ], [ 658644.0152433264, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799333.361722283 ], [ 658759.1664923802, 6799333.361722283 ], [ 658759.1664923802, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Zone Name 1", "Zone Name 2", "Zone Name 3" ], [ "Attribute Name 1", "Attribute Name 2" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ], [ 7.0, 8.0 ], [ 9.0, 10.0 ], [ 11.0, 12.0 ] ], [ 1, 2, 3 ], false, 0.5, "" ]
}, [ "Zone Name 1", "Zone Name 2", "Zone Name 3" ], [ "Attribute Name 1", "Attribute Name 2" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ], [ 7.0, 8.0 ], [ 9.0, 10.0 ], [ 11.0, 12.0 ] ], [ 1, 2, 3 ], true, 0.5, "" ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor zoning]]}}
{{article end|seealso=*[[Api session event editor zoning]]
*[[Api session items zones]]
}}


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

Latest revision as of 12:15, 1 April 2026

API Event to Import Zone Collection

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) Collection of Zone geometries
1 REQUIRED (String or multiple values in array ["a", "b", "c"]) Zone 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 (STAKEHOLDER Integer ID or multiple values in array [1, 2, 3]) Permitter
5 REQUIRED (true, false) Import as category Zone true or false
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[] (Integer array)
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editorzoning/import/?crs=3857&f=JSON&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799459.159787497 ], [ 658714.3679465037, 6799459.159787497 ], [ 658714.3679465037, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799316.027611575 ], [ 658761.6546688761, 6799316.027611575 ], [ 658761.6546688761, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799333.361722283 ], [ 658759.1664923802, 6799333.361722283 ], [ 658759.1664923802, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Zone Name 1", "Zone Name 2", "Zone Name 3" ], [ "Attribute Name 1", "Attribute Name 2" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ], [ 7.0, 8.0 ], [ 9.0, 10.0 ], [ 11.0, 12.0 ] ], [ 1, 2, 3 ], true, 0.5, "" ]