heremaps / tin-terrain

A command-line tool for converting heightmaps in GeoTIFF format into tiled optimized meshes.
MIT License
586 stars 127 forks source link

dem2tintiles layer.json missing #74

Open iyush1993 opened 4 years ago

iyush1993 commented 4 years ago

AFAIK, when it comes to tiles, there is a file with the metadata. For example, while we tile a raster, there is always a layer.json file that gets used by OL or Cesium initially. But the dem2tintiles does not create that file. Is that intended or am I missing something?

fnicollet commented 4 years ago

Hello,

It seems that the dem2tintiles tool doesn't generate the layer.json file. Just like it doesn't produce the first-levels tiles so that Cesium can load it, see this thread: https://github.com/heremaps/tin-terrain/issues/51 The solution seems to be using their other tool: https://github.com/heremaps/quantized-mesh-viewer Which handle these "missing bits". But when you try their viewer example (by adding your own Cesium ION Access key in the source code, bit annoying), the terrain is loaded and the browser never tries to download a "layer.json" file so I guess it is not needed

hope it helps,