Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector to raster conversion #463

Open
wants to merge 6 commits into
base: draft
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions proposals/vector_to_raster.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"id": "vector_to_raster",
"description": "Creates a raster cube as output based on a vector cube. The values in the output raster cube are based on the numeric properties in the input vector cube.",
Copy link
Member

@m-mohr m-mohr Sep 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The values in the output raster cube are based on the numeric properties in the input vector cube.

What does this mean? Can this be explained a bit better/more precisely?

Generally, I think this needs more specific information about how the conversion is done to be testable in the future.

"summary": "Converts a vector cube to a raster cube.",
JeroenVerstraelen marked this conversation as resolved.
Show resolved Hide resolved
"categories": [
"cubes",
"vector"
],
"experimental": true,
"parameters": [
{
"name": "data",
"description": "A vector data cube.",
"optional": false,
JeroenVerstraelen marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry"
}
]
}
},
{
"name": "target",
"description": "A raster data cube used as reference for the target's extent, spatial resolution, and projection.",
"optional": false,
JeroenVerstraelen marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "spatial",
"axis": [
"x",
"y"
]
}
]
}
}
],
"returns": {
"description": "A raster datacube with the provided extent, spatial resolution, and projection. The output cube contains bands where each pixel inside the provided polygons has the value related to that polygon in the vector cube and all pixels outside have NoData values.",
JeroenVerstraelen marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "spatial",
"axis": [
"x",
"y"
]
}
]
}
}
}
Loading