Skip to content

Support more terrain encoding formats (TerrainRGB, Terrarium) + public terrain sources #998

Description

@jo-chemla

It's great being able to load a terrain of:

  • a user-provided geotiff terrain DTM
  • SRTM30, dynamically applied to exported satellite raster plane
  • or user-provided custom WMS sources like shown in this comment Custom WMS as elevation  #893 (comment) with for example ("https://data.geopf.fr/wms-r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=normal&FORMAT=image/geotiff&LAYERS=ELEVATION.ELEVATIONGRIDCOVERAGE.HIGHRES&WIDTH=5000&HEIGHT=5000&CRS=EPSG:4326&BBOX={S},{W},{N},{E}", 'Geoplateforme', 'Elevation data from IGN')

The custom terrain sources can be bbox bounds templated string with {W} {S} {N} {E} templates. It does not seem that one can input standard WebMercator EPSG:3857 {z}, {x}, {y} templates - which would anyway not be meaningful without the tileResolution control, usually 256 or 512.

It would also be great to add support for other terrain encodings well used for serving terrain tiles. Especially, terrainRGB and terrarium.

I've added in the details section below some sources for elevation that use the TerrainRGB or Terrarium - some public and some behind API key. It could be useful to add support for TerrainRGB which most sources use, as well as Terrarium - quantized mesh is a different beast altogether, probably too complex to implement.

Terrain Tiles Sources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions