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

Processing toolbox: Rasterize vector layer #532

Open
mfisher87 opened this issue Mar 11, 2025 · 3 comments
Open

Processing toolbox: Rasterize vector layer #532

mfisher87 opened this issue Mar 11, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@mfisher87
Copy link
Member

mfisher87 commented Mar 11, 2025

Convert a layer from vector to raster as a processing function. The output raster should be shown as a new layer.

https://gdal.org/en/stable/programs/gdal_rasterize.html

@mfisher87 mfisher87 added the enhancement New feature or request label Mar 11, 2025
@arjxn-py
Copy link
Member

Do you think #528 is covering this while converting a vectorlayer to geotiff?

@mfisher87
Copy link
Member Author

mfisher87 commented Mar 12, 2025

It's close; I was thinking this function should be in the processing toolbox instead of (or in addition to) a download option. So instead of downloading the rasterized vector to the user's computer, it would show up as a new layer in the project!

This way, if we prefer, we could only offer download options of the same time as the source data, i.e. download vector only as vector data. That might be simpler and clearer for the user.

I feel that offering the ability to transform vectors to rasters at download time may be confusing, especially as there's no good way to do the opposite, download a raster as a vector, without knowing what the user wants. Do they want the data to be contourized? Do they want a set of points representing the centroid of each grid cell with the value as an attribute on each point? Maybe something else I haven't thought of? To me those functions all make sense for the processing toolbox, not in the download menu.

@martinRenou
Copy link
Member

Makes total sense to me! Let's remove the download of vector layers as geotiff from #528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants