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

Example of generating a quantized mesh from DEM tile #27

Open
fullonic opened this issue Sep 16, 2022 · 2 comments
Open

Example of generating a quantized mesh from DEM tile #27

fullonic opened this issue Sep 16, 2022 · 2 comments

Comments

@fullonic
Copy link

Hey @kylebarron!

I'm exploring stacks to generate a quantized mesh from a DEM and I would like to try your library pydelatin & quantized-mesh-encoder. I would like to know if you could provide a small example of converting the DEM tile (opened with RasterIO) into a quantized mesh. Would be that possible?
I can convert the DEM into a NumPy array using the RasterIO, but I can't understand well the next steps to prepare that array to feed pydelatin.

Thanks!

BTW, great work you have done with your tools and contributions to the COG ecosystem 😃

@kylebarron
Copy link
Owner

I'd look at this function in dem-tiler, and this bench.py script.

Note that I think imageio.imread might have a different axis order than rasterio; I can't remember off the top of my head

@fullonic
Copy link
Author

Thanks, @kylebarron! Once I start working again with meshes I will have a look at that. Cheers!

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

No branches or pull requests

2 participants