cyclosm-cartocss-style
cyclosm-cartocss-style copied to clipboard
Hillshade is showing dark
I used carto to convert cyclOSM project to mapnik xml. I am also using libmapnik to render the map. I followed the instructions on (install) for Elevation data, and enabled hillshade in the xml file (status=on)
- downloaded SRTM3 files for my area.
- did hillshade processing
gdalwarp -s_srs EPSG:4269 -t_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" -r bilinear <IN.tif> <PROJ.tif>gdaldem hillshade -co compress=lzw -compute_edges <PROJ.tif> <HILLSHADE.tif>gdaldem color-relief <HILLSHADE.tif> -alpha shade.ramp <SEMI-TRANSPARENT-HILLSHADE.tif>gdalbuildvrt dem/shade.vrt <SEMI-TRANSPARENT-HILLSHADE.tif>
Then moved shade.vrt and all files under semi folder to my base folder.
However, I got hillshade looking as attchaed:
On cyclOSM. org site (this) it shows differently.

Is DEM processing lacking additional step?
@cquest handled the hillshades generation for the live CyclOSM tiles (hosted by Openstreetmap-france, available at https://cyclosm.org/ and osm.org), I'm cc-ing him as he might have more details on the process.
Thanks @Phyks
Same for me, and when I zoom it's really "pixelly" compared to https://www.cyclosm.org/#map=15/-22.3114/1246.4506/cyclosm. Any updates on that @cquest ? Thanks
@alsaleem00 Did you ever find a solution for this issue and could post it here (or as a PR)?
If not, could you re-open the issue?
(I believe I had the same issue when I tried this sometime in 2022, but never really dug into it.)
Sorry, I did not continue in this direction as we were porting mapnik to Android.