heremaps / tin-terrain

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

Tiling issues #28

Open morishuz opened 6 years ago

morishuz commented 6 years ago

There are some issues with tile boundaries:

  1. in certain circumstances border vertices are not shared with neighbouring tiles - causing discontinuities between tiles. screen shot 2018-09-04 at 18 52 29

  2. tiling code can produce extra vertices with spacings much less than original terrain raster (amongst other things causing severe issues when save with quantised mesh methods). To understand the scale: in this image the grey square regions are pixels! screen shot 2018-09-04 at 19 00 07

please note: some of these issues may be fixed now, but either way we should have a test to measure tile boundary continuity and multiple polygons per pixel problems.

also, to visualise this i had to write specialised code (export geojson meshes in correct coordinates) but we should eventually add this as a debug option to the tiling "dem2tiles" subcommand.