Replies: 3 comments 7 replies
|
From my experience, the problem is usually the data. |
|
I don't have an answer for your specific problem, but I have generated France with RGE_Alti sources with the process here https://github.com/acalcutt/terrain_merged/tree/main/datasets/RGE_ALTI (using download_france.sh , convert_france_images_EPSG4326.sh , create_terrainrgb_EPSG4326.sh and it seemed to work. I know with the RGE_Alti source files I used they had multiple projections that I had to convert into a common projection so I could combine them properly, which is why there is a convert script in that terrain. You can download the merged torrent file I generated based on that here I am also using modified version or rio rgbify which I have added some code to clip elevation below the minimum value before converting, because I found that was one reason for spikes. In this case though I am not sure that is what is causing your spikes |
|
...Finally, I obtained a correct terrain RGB mbtiles with the use of Acalcutt work. Its scripts work like a charm. I just reduce the max zoom level to 12 for a reasonable rendering time (nearly 3.5hours with a Ryzen 7745, for the the last 10 tiles, 1.5 hour). Now I have to understand why my process introduced weird negative elevation values... |

Uh oh!
There was an error while loading. Please reload this page.
Hello,
I used maplibre-gl to display a map of Ireland. I produced my vector tiles from OSM data and elevation tiles from SRTM data (both in mapbox tiles format). All worked fine. But when I tried to do the same for France, elevation data rendering seems to be corrupted. I checked sample points from encoded PNG tiles and data are well encoded. Using the rule height = -10000 + ((R * 256 * 256 + G * 256 + B) * 0.1), I find correct elevations. It seems that for all mountain areas above 3000m (I cannot prove it, but i think it's 3048m or 10000 feet), something is going wrong. The problem is the same with Firefox and Chromium.
Does anyone have an idea to solve that ?
(I discovered this 2 years ago, and still not found neither clue nor solution on the web)
In the following screenshot, you can see that elevation rendering is corrupted in 3D and 2D.
All reactions