Skip to content

Commit

Permalink
Fixes #344 and #347
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 21, 2022
1 parent e4df864 commit e249e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions proposals/vector_to_random_points.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"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.\n\nThrows a `CountsMissing` exception if `geometry_count` and `total_count` are both unrestricted (i.e. set to `null`).",
"description": "Generate a vector data cube of points by sampling random points from input geometries. At least one point is sampled per input geometry. Vector 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"
Expand All @@ -24,9 +24,9 @@
},
{
"name": "geometry_count",
"description": "The maximum number of points to compute per geometry. Defaults to a maximum of one point per geometry.\n\nPoints in the input geometries can be selected only once by the sampling.",
"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": 1,
"default": null,
"schema": [
{
"type": "integer",
Expand Down Expand Up @@ -56,7 +56,7 @@
},
{
"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. Vector properties are preserved.\n* Otherwise, each sampled point is generated as a distinct `Point` geometry. Vector properties are *not* preserved.",
"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.\n* Otherwise, each sampled point is generated as a distinct `Point` geometry with a identifier.",
"optional": true,
"default": true,
"schema": {
Expand Down Expand Up @@ -84,9 +84,6 @@
}
},
"exceptions": {
"CountsMissing": {
"message": "No maximum count is set per geometry and in total."
},
"CountMismatch": {
"message": "The total number of points is lower than the number of geometries."
}
Expand Down
4 changes: 2 additions & 2 deletions proposals/vector_to_regular_points.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vector_to_regular_points",
"summary": "Sample regular points from geometries",
"description": "Generate a vector data cube of points by sampling regularly-spaced points from input geometries.",
"description": "Generate a vector data cube of points by sampling regularly-spaced points from input geometries. Vector properties are preserved.",
"categories": [
"cubes",
"vector"
Expand Down Expand Up @@ -32,7 +32,7 @@
},
{
"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. Vector properties are preserved.\n* Otherwise, each sampled point is generated as a distinct `Point` geometry. Vector properties are *not* preserved.",
"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.\n* Otherwise, each sampled point is generated as a distinct `Point` geometry with a identifier.",
"optional": true,
"default": true,
"schema": {
Expand Down

0 comments on commit e249e2f

Please sign in to comment.