Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Steps from DEM to quantized-mesh tiles #168

Open
turban opened this issue Aug 28, 2016 · 6 comments
Open

Steps from DEM to quantized-mesh tiles #168

turban opened this issue Aug 28, 2016 · 6 comments

Comments

@turban
Copy link

turban commented Aug 28, 2016

Thanks for providing a quantized-mesh library! I've previously used simple hightmap for 3D landscape rendering in Cesium: http://blog.thematicmapping.org/2014/10/3d-terrains-with-cesium.html

Now I would like to use the 3d-forge library, but I miss some documentation covering all the steps.

If I have a GeoTIFF DEM, what are the actual steps to turn it into quantized-mesh tiles?

@loicgasser
Copy link
Contributor

Hi,

Steps are

  1. Create a mesh from your DEM
  2. Create simplified meshes from your initial mesh

This is not covered in this project.

  1. Load each mesh in a separated table in postgres (make sure you are in WGS84) and make sure DB credentials are ok in configs/terrain/database.cfg.mako
  2. Define a configuration file for your tiling scheme configs/terrain/tms.cfg.mako, configure s3 bucket and so on.
  3. Make sure you installed sql functions in your template.
  4. Run lib/tiler.py > will write terrain tiles to S3

You can also have a look at
https://github.com/loicgasser/quantized-mesh-tile

Which takes care of the encoding/decoding part of a terrain tile. The goal is to use this module in the 3D forge. Also if you want to add doc/improve the code base, PR are welcome.

@turban
Copy link
Author

turban commented Aug 29, 2016

Thanks, I'll try to get this pipeline to work, and maybe contribute to the documentation if I succeed ;-)

Although creating the mesh is not part of the project, it is still prerequisite as most terrain data is in raster format. Which tools did you use to create the (simplified) mesh for the Swiss Geoportal?

@gjn
Copy link
Contributor

gjn commented Sep 2, 2016

We used commercial software to create the triangulation/mesh.

@turban
Copy link
Author

turban commented Sep 7, 2016

Ok, I'm currently trying to find an open source solution: http://blog.thematicmapping.org/2016/09/creating-tin-from-raster-dem.html

@loicgasser
Copy link
Contributor

Thanks for the link. Let us know how it went

@543802360
Copy link

good job,thank you! I will have a try

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

No branches or pull requests

4 participants