Api session event editor parametric set polygons

From Tygron Support wiki
Revision as of 07:54, 31 March 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Event to Set Polygons

Name Importance Type Description Values
0 REQUIRED (PARAMETRIC_DESIGN Integer ID or multiple values in array [1, 2, 3]) Parametric Design
1 REQUIRED (MultiPolygon with crs: EPSG:3857 or multiple values in array [a, b, c]) MultiPolygon[]

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

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

with content:

[ [ 1, 2, 3 ], [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799381.057110092 ], [ 658716.2015961537, 6799381.057110092 ], [ 658716.2015961537, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799417.502442103 ], [ 658712.6983345991, 6799417.502442103 ], [ 658712.6983345991, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799404.537045159 ], [ 658704.1553787455, 6799404.537045159 ], [ 658704.1553787455, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ] ]