-
Notifications
You must be signed in to change notification settings - Fork 17
/
vector_to_random_points.json
99 lines (99 loc) · 3.58 KB
/
vector_to_random_points.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
98
99
{
"id": "vector_to_random_points",
"summary": "Sample random points from geometries",
"description": "Generate a vector data cube of points by sampling random points from input geometries. At least one point is sampled per input geometry. Empty geometries are passed through without any points assigned. Feature properties are preserved.\n\nIf `geometry_count` and `total_count` are both unrestricted (i.e. set to `null`, which is the default), one sample per geometry is used.",
"categories": [
"cubes",
"vector"
],
"experimental": true,
"parameters": [
{
"name": "data",
"description": "Input geometries for sample extraction.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry"
}
]
}
},
{
"name": "geometry_count",
"description": "The maximum number of points to compute per geometry.\n\nPoints in the input geometries can be selected only once by the sampling.",
"optional": true,
"default": null,
"schema": [
{
"type": "integer",
"minimum": 1
},
{
"title": "Unrestricted",
"type": "null"
}
]
},
{
"name": "total_count",
"description": "The maximum number of points to compute overall.\n\nThrows a `CountMismatch` exception if the specified value is less than the provided number of geometries.",
"optional": true,
"default": null,
"schema": [
{
"type": "integer",
"minimum": 1
},
{
"title": "Unrestricted",
"type": "null"
}
]
},
{
"name": "group",
"description": "Specifies whether the sampled points should be grouped by input geometry (default) or be generated as independent points.\n\n* If the sampled points are grouped, the process generates a `MultiPoint` per geometry given which keeps the original identifier if present.\n* Otherwise, each sampled point is generated as a distinct `Point` geometry without identifier.",
"optional": true,
"default": true,
"schema": {
"type": "boolean"
}
},
{
"name": "seed",
"description": "A randomization seed to use for random sampling. If not given or `null`, no seed is used and results may differ on subsequent use.",
"optional": true,
"default": null,
"schema": {
"type": [
"integer",
"null"
]
}
}
],
"returns": {
"description": "Returns a vector data cube with the sampled points.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry",
"geometry_type": [
"Point",
"MultiPoint"
]
}
]
}
},
"exceptions": {
"CountMismatch": {
"message": "The total number of points is lower than the number of geometries."
}
}
}