/topotiles

Convert Topopgraphy Raster to Tiles with Hillshade

Primary LanguageShellBSD 2-Clause "Simplified" LicenseBSD-2-Clause

topotiles

Convert Topopgraphy Raster to Tiles with Hillshade

Example color-relief hillshaded output

Steps

  1. ./get_gmrt.sh - Downloads topography data from https://www.gmrt.org in tiles of approximately 30 degres
    • These files are about 200 MB a piece
  2. ./fix_180.sh - Shift tiles into -180/180 longitude if necessary
  3. ./make_tiles.sh - Create hillshaded topography and create tiles for a leaflet tilelayer / slippy map
  4. ./png2webp.sh - Convert and shrink all png files to webp using cwebp

Notes

  • Any raster topography can be used for this process
  • Processing is done using https://gdal.org/
  • Rasters with longitude values outside of -180/180 appear to be lost in the procedure in gdal2tiles.py
  • Hillshaded topography is accomplished by creating
  • Creating of the tiles can take a long time
  • The output tiles directory should have leaflet.html and other various html files to easily view the output
  • Any artifacts in the color-relief image will propagate into the resulting tiles.
  • Colormap is taken from GeoMapApp and the default GMRT colorscale
    • The land and ocean scales were merged
    • Colored at shallow water depths were changed from a dark green to very light/almost white

License

BSD 2-Clause Simplified License