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

Presentation of vector data in high-resolution gridded form #46

Open
BabakEbrahimi opened this issue Mar 12, 2024 · 6 comments
Open

Presentation of vector data in high-resolution gridded form #46

BabakEbrahimi opened this issue Mar 12, 2024 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@BabakEbrahimi
Copy link

Hi!

We are at the stage where we would like to test the possibility of presenting UC4 data in gridded format. We are looking for the best possible practice to transform our data from vector format to gridded format. We are also interested in testing different pixel sizes to find an optimal outcome concerning resolution and data size.

Best wishes
Babak

@eox-cs1
Copy link

eox-cs1 commented Mar 12, 2024

I recommend using gdal_rasterize (https://gdal.org/programs/gdal_rasterize.html) for the conversion and then gdal_translate (https://gdal.org/programs/gdal_translate.html) for any further raster conversions.

@jetschny
Copy link

jetschny commented Apr 8, 2024

you can have a look at an example from ETC DI work :
https://github.com/jetschny/323_end_noise/blob/master/src/features/load_osm_data_streets_knossos.py

@KathiSchleidt
Copy link
Member

@MarvinMosel could it be that you already have this problem solved?

@MarvinMosel
Copy link

We have already used to vector-to-raster in some scripts. I will extract the vec-to-raster part of the script and make it available.

@MarvinMosel
Copy link

I set up a subfolder in our common-code repository where we can collect vector to raster codes:

https://github.com/FAIRiCUBE/common-code/tree/main/from_VECTOR_to_RASTER

@MarvinMosel
Copy link

We have just taken another look at the Vector to Raster tools and created a workfow:
LINK to workflow png

So far we only have polygons to raster as a tool:
LINK to vector (polygon) to raster

--> If you have any additional ideas, please add them to the notbook.

What will be created next is a notbook that converts points and lines into raster. As this is a slightly different approach, we have decided to create a separate notebook for this.

-->If you have already done something, please post it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

10 participants