-
Notifications
You must be signed in to change notification settings - Fork 14
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 #442
Comments
We shouldn't do these "either or" parameters anymore, they lead to a weird interface in some languages. Instead, two processes are better (see resample_cube_spatial and resample_spatial). Maybe we finally need a Converting properties to bands is weird. This should probably not be bands, but a general list of labels for a dimension (type: other). PRs are welcome. |
I don't think that converting properties to bands is weird. Anyway, I agree that it would be good to have |
Another solution which we use with raster cubes is: So the resolution info would be derived from subsequent processes, avoiding the need for two variants as well. @JeroenVerstraelen please try implementing something like: |
The vector_to_raster process has now been implemented in the VITO backend. ParametersBandsOptional: yes, default: all bands Description Data Type Target_datacubeOptional: no Description Data Type Return ValueDescription Data Type Notes
|
A PR would be welcome. |
vector_to_raster
Context
Users load a vectorcube (e.g. from geojson) they want to convert it to raster, to be able to combine it at pixel level.
The vecturcube has a numerical property that needs to be burned into the pixel values.
So for instance, the population of a country could be used as a value for the pixels. When multiple attributes are available, this could result into a band dimension?
Summary
Creates a raster cube as output based on a vector cube. The values in the output raster cube are based on numeric properties in the input vector cube.
Description
Creates a raster cube as output based on a vector cube. The values in the output raster cube are based on numeric properties in the input vector cube.
Parameters
bands
Optional: yes
Description
Array of strings containing the vector band labels to convert to raster bands. If not provided, all bands are converted to raster bands.
Data Type
array
target_datacube
Optional: yes, default: null
Description
A data cube that describes the spatial target resolution and projection. If not specified, resolution needs to be provided.
Data Type
raster datacube
resolution
Optional: yes
Description
target resolution of the raster, if not specified, target_datacube needs to be set
Data Type
float
crs
Optional: yes
Description
target coordinate reference system of the raster, specified as epsg code. If not specified, the crs from target_datacube is used or the crs from the vector data cube.
Data Type
int or string?
Return Value
Description
A raster datacube
Data Type
rasterdatacube
Categories (optional)
The text was updated successfully, but these errors were encountered: