Api session event editor measure import grids: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 55: | Line 55: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_grids/?crs=3857&f= | Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_grids/?crs=3857&f=JSON&token=API_TOKEN | ||
with content: | with content: | ||
| Line 62: | Line 62: | ||
"geometries" : [ { | "geometries" : [ { | ||
"type" : "MultiPolygon", | "type" : "MultiPolygon", | ||
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, | "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799309.938837371 ], [ 658768.8089883694, 6799309.938837371 ], [ 658768.8089883694, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ] | ||
}, { | }, { | ||
"type" : "MultiPolygon", | "type" : "MultiPolygon", | ||
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, | "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799438.054173609 ], [ 658771.8915986755, 6799438.054173609 ], [ 658771.8915986755, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ] | ||
}, { | }, { | ||
"type" : "MultiPolygon", | "type" : "MultiPolygon", | ||
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, | "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799314.919970794 ], [ 658676.8666440967, 6799314.919970794 ], [ 658676.8666440967, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ] | ||
} ] | } ] | ||
}, [ 1, 2, 3 ], [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ], "", "", "" ] | }, [ 1, 2, 3 ], [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ], "", "", "" ] | ||
Revision as of 08:18, 1 April 2026
API Event to Import Measure Grid Collection
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (GeometryCollection with crs: EPSG:3857) | Collection of Grid Geometries where the Grid will be applied | |
| 1 | REQUIRED | (TERRAIN_TYPE Integer ID or multiple values in array [1, 2, 3]) | Terrain Type IDs | |
| 2 | REQUIRED | (Integer or multiple values in array [a, b, c]) | Grid ID arrays | |
| 3 | OPTIONAL | (MEASURE Integer ID) | Set for existing Measure ID (optional) | |
| 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 (Measure ID) |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editormeasure/import_grids/?crs=3857&f=JSON&token=API_TOKEN
with content:
[ {
"type" : "GeometryCollection",
"geometries" : [ {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799309.938837371 ], [ 658768.8089883694, 6799309.938837371 ], [ 658768.8089883694, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799438.054173609 ], [ 658771.8915986755, 6799438.054173609 ], [ 658771.8915986755, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
}, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799314.919970794 ], [ 658676.8666440967, 6799314.919970794 ], [ 658676.8666440967, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
} ]
}, [ 1, 2, 3 ], [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ], "", "", "" ]