-
Notifications
You must be signed in to change notification settings - Fork 4
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
people-EA: vector to raster #423
people-EA: vector to raster #423
Comments
Geotrellis 'rasterize' method already exists on RDD[Feature] We could serialize to geoparquet and read again from spark? That would also work for large files. |
The main implementation is done. I am running into an issue during testing though. Issue: CRS in layercatalog.json layers can be UTM, which means the EPSG code needs to be calculated from the extent. This is an extra complexity in vector_to_raster that I'd like to avoid. Possible solutions:
Example CRS in target_raster_cube.metadata.spatial_dimensions[0].crs:
GeoPySparkLayerCatalog.native_crs(metadata) converts this to "UTM". |
Another issue is how much information should be extracted from target_datacube. Currently I want to only extract the crs and target_resolution from DriverDataCube.CollectionMetadata and calculate the extent and layoutdefinition using the geometries provided in the input vector cube. I feel like this keeps the process simple and easy to understand. There was a discussion on that we could take the extent, layoutdefinition from the target_datacube, and only rasterize the geometries in that extent. |
After discussion we decided to:
Features left to implement:
|
All features have been implemented. The example notebook is also complete and has been sent to Marcel. There are two TODOs for future improvements:
|
given vector data cube with attributes
convert to raster
use attribute property to burn in the pixel value
Open-EO/openeo-processes#442
The text was updated successfully, but these errors were encountered: