Open Fakhriyramadhan25 opened 7 months ago
Hi, is there are any update? @Fakhriyramadhan25 Did you find the right way to do that?
@notnotzero @Fakhriyramadhan25 i personally call it that way rio rgbify --format webp -j16 -b -10000 -i 0.1 --max-z 7 --min-z 7 --round-digits 7
which i think fixes it (the -b
)
@Fakhriyramadhan25 What is your Nodata
value in your transofrmed DEM
data? I have experienced a similar issue when converting DEM
to TIFF
and then TIFF
to MBTiles
. Setting Nodata
field to None
solved the issues.
I'm having the same issue, both when I use rio rgbify or Export to MbTiles from QGIS. I've set the null values either to 0, or to an arbitrary value, I've changed base height when using rio rgbify, but I can't prepare the elevation data properly for tiling. I think it is related to the fact my original elevation data is of type Float32, but I'm not sure yet. Have you solved the issue, @Fakhriyramadhan25 ? Thanks
It happens the same if I use the data from JAXA, and follow Bert's useful tutorial: https://bertt.wordpress.com/2022/05/24/custom-maplibre-terrain-tiles/ So it's not an issue related to the elevation data.
First correcting dem, then converting mbtiles and xyz tiles worked for me!
./gdalwarp.exe -dstnodata 0 C:\Users\myPerfectUser\Documents\works\digitalTerrain\masked_turkey.tif C:\Users\myPerfectUser\Documents\works\digitalTerrain\corrected_turkey.tif
docker run --rm -ti -v "C:/Users/myPerfectUser/Documents/works/digitalTerrain/:/data" helmi03/rio-rgbify --format png -j 24 -b -10000 -i 0.1 --max-z 12 --min-z 0 corrected_turkey.tif output.mbtiles
docker run --rm -v "C:/Users/myPerfectUser/Documents/works/digitalTerrain/:/data" jskeates/mbutil /data/output.mbtiles /data/tiles
Hi there,
I am developing a 3D terrain using Maplibre GL, i want to use my own DEM data to visualize the terrain. I have converted DEM with EPSG:3857 into RGB terrain by utilizing water-gis tools. The tools comply with the MaplibreGL equation: height = -10000 + ((R 256 256 + G 256 + B) 0.1). Nonetheless, when i tried to visualize the raster-tiles into the raster-dem there is a vertical distortion occurred, it is shifted vertically, the picture as follows:![base-10000](https://github.com/mapbox/rio-rgbify/assets/49341041/cdde69dc-d64a-4f49-8a29-f07a93affdeb)
To debug this error, i have tried to change the base of the equation from (-10000) to (0) but it turns out that evoke other error to the terrain. The zoom level can only enable until 12, after that the map returns blank white screen. The base still shifted vertically but not as significant when the base is (-10000), picture as follows:![base-0](https://github.com/mapbox/rio-rgbify/assets/49341041/6a7d8548-4e25-43b7-9b51-5e036b567dd9)
Other debugging effort is by customizing the encoding of maplibre, the code as follows:
The terrain touches the ground with this method but the terrain surface getting rougher and abstract. image as follows:![baseshift-0](https://github.com/mapbox/rio-rgbify/assets/49341041/8fa16c7d-d868-4856-8c4c-4683b0dcd4fe)
How can i repair the base shifting issue from -10000 to 0 without causing any other bug?
Thank You