-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcrop_polygon.json
97 lines (97 loc) · 3.06 KB
/
crop_polygon.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"id": "crop_polygon",
"summary": "Crop using a polygon",
"description": "Crops a data cube to the given polygons by filtering and masking. This process executes the two processes ``filter_spatial()`` and ``mask_polygon()`` consecutively.",
"categories": [
"cubes",
"filter",
"masks"
],
"parameters": [
{
"name": "data",
"description": "A raster data cube.",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
},
{
"name": "mask",
"description": "A GeoJSON object containing at least one polygon. The provided feature types can be one of the following:\n\n* A `Polygon` or `MultiPolygon` geometry,\n* a `Feature` with a `Polygon` or `MultiPolygon` geometry or,\n* a `FeatureCollection` containing at least one `Feature` with `Polygon` or `MultiPolygon` geometries.",
"schema": [
{
"type": "object",
"subtype": "geojson"
},
{
"type": "object",
"subtype": "vector-cube"
}
]
},
{
"name": "replacement",
"description": "The value used to replace masked values with.",
"schema": [
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"optional": true
}
],
"returns": {
"description": "A masked data cube restricted to the specified geometries. The dimensions and dimension properties (name, type, labels, reference system and resolution) remain unchanged, except that the spatial dimensions have less (or the same) dimension labels.",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
},
"links": [
{
"href": "http://www.opengeospatial.org/standards/sfa",
"rel": "about",
"title": "Simple Features standard by the OGC"
}
],
"process_graph": {
"filter": {
"process_id": "filter_spatial",
"arguments": {
"data": {
"from_parameter": "data"
},
"geometries": {
"from_parameter": "mask"
}
}
},
"mask": {
"process_id": "mask_polygon",
"arguments": {
"data": {
"from_node": "filter"
},
"replacement": {
"from_parameter": "replacement"
},
"mask": {
"from_parameter": "mask"
},
"inside": false
},
"result": true
}
}
}