Api session event editor neighborhood import: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import Neighborhood Collection {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(GeometryCollection with crs: EPSG:3857) |Collection of Neighborhood geometries | |- |1 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |Neighborhood 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...."
 
No edit summary
Line 1: Line 1:
API Event to Import [[Neighborhood]] Collection
API Event to Import Neighborhood 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 [[Neighborhood]] geometries
|Collection of Neighborhood 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"])
|[[Neighborhood]] Names
|Neighborhood Names
|
|
|-
|-
Line 40: Line 40:
|OPTIONAL
|OPTIONAL
|(SOURCE Integer ID)
|(SOURCE Integer ID)
|[[Source]] (optional)
|Source (optional)
|
|
|}
|}
Line 62: Line 62:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799379.013967549 ], [ 658665.8679944691, 6799379.013967549 ], [ 658665.8679944691, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799426.68851068 ], [ 658754.7244801635, 6799426.68851068 ], [ 658754.7244801635, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799452.443989806 ], [ 658659.8830529633, 6799452.443989806 ], [ 658659.8830529633, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.886673956 ], [ 658700.7917928952, 6799412.886673956 ], [ 658700.7917928952, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799453.595501031 ], [ 658642.5242863923, 6799453.595501031 ], [ 658642.5242863923, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799302.162623477 ], [ 658647.3804533129, 6799302.162623477 ], [ 658647.3804533129, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Neighborhood Name 1", "Neighborhood Name 2", "Neighborhood 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 ] ], 0.5, "" ]
}, [ "Neighborhood Name 1", "Neighborhood Name 2", "Neighborhood 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 ] ], 0.5, "" ]

Revision as of 13:56, 30 March 2026

API Event to Import Neighborhood Collection

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) Collection of Neighborhood geometries
1 REQUIRED (String or multiple values in array ["a", "b", "c"]) Neighborhood 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 OPTIONAL (Floating point number) Buffer for Points and Lines to make Polygons (optional)
5 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/editorneighborhood/import/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799426.68851068 ], [ 658754.7244801635, 6799426.68851068 ], [ 658754.7244801635, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799412.886673956 ], [ 658700.7917928952, 6799412.886673956 ], [ 658700.7917928952, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799302.162623477 ], [ 658647.3804533129, 6799302.162623477 ], [ 658647.3804533129, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Neighborhood Name 1", "Neighborhood Name 2", "Neighborhood 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 ] ], 0.5, "" ]