-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvector_buffer.json
51 lines (51 loc) · 2.06 KB
/
vector_buffer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"id": "vector_buffer",
"summary": "Buffer geometries by distance",
"description": "Buffers each input geometry by a given distance, which can either expand (dilate) or a shrink (erode) the geometry. Buffers can be applied to points, lines and polygons, but the results are always polygons. Empty geometries are passed through and negative buffers may result in empty geometries. Multi-part types (e.g. `MultiPoint`) are also allowed.",
"categories": [
"vector"
],
"experimental": true,
"parameters": [
{
"name": "geometries",
"description": "Geometries to apply the buffer on. Feature properties are preserved.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry"
}
]
}
},
{
"name": "distance",
"description": "The distance of the buffer in meters. A positive distance expands the geometries, resulting in outward buffering (dilation), while a negative distance shrinks the geometries, resulting in inward buffering (erosion).\n\nIf the unit of the spatial reference system is not meters, a `UnitMismatch` error is thrown. Use ``vector_reproject()`` to convert the geometries to a suitable spatial reference system.",
"schema": {
"type": "number",
"not": {
"const": 0
}
}
}
],
"returns": {
"description": "Returns a vector data cube with the computed new geometries of which some may be empty.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry"
}
]
}
},
"exceptions": {
"UnitMismatch": {
"message": "The unit of the spatial reference system is not meters, but the given distance is in meters."
}
}
}