-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hillshade is showing dark #621
Comments
@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 ? |
@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. |
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)
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?
The text was updated successfully, but these errors were encountered: