Skip to content

Converting DEMs to vector hillshades and contours for inclusion into osm2vectortiles

License

Notifications You must be signed in to change notification settings

osm2vectortiles/dem2vectorterrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

dem2vectorterrain

UPDATE: vector tiles made from a terrain are available at https://openmaptiles.com/contours/. The software for turning raster data into bezier curves and polygons is available as a service via https://octogeo.com/.

This is an exploration of converting DEMs to vector hillshades and contours for inclusion into osm2vectortiles

Thoughts:

  1. Use ASTER DEMs. Superior to SRTM and openly available (but do see their license), see http://www.digital-geography.com/dem-comparison-srtm-3-vs-aster-gdem-v2/ for a comparison.
  2. Export to hillshade with gdaldem (http://www.gdal.org/gdaldem.html)
  3. Export to contours with gdal_contour (http://www.gdal.org/gdal_contour.html) (what elevation resolution?)
    • Import these contours into postgres
    • Generalize for other layers (remove vertices and perhaps in between elevations depending on density)
  4. Dockerize to the following stages:
    • export hillshade to vectors in postgres (import-hillshade), generalize vectors (generalize-hillshade)
    • export to contours in postgres (import-contours), generalize vectors (generalize-contours)
    • Both are done on a per-tile basis for imports
    • Exports integrated into osm2vectortiles
    • Undecided on whether to merge features in postgres so intersecting contours of same elevation are dissolved by elevation attribute
  5. Need a tm2 source, integrated into osm2vectortiles?

About

Converting DEMs to vector hillshades and contours for inclusion into osm2vectortiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published