Skip to content
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

Open
alsaleem00 opened this issue May 11, 2022 · 5 comments
Open

Hillshade is showing dark #621

alsaleem00 opened this issue May 11, 2022 · 5 comments

Comments

@alsaleem00
Copy link

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.
hillshade

Is DEM processing lacking additional step?

@Phyks
Copy link
Member

Phyks commented Jan 18, 2023

@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.

@alsaleem00
Copy link
Author

Thanks @Phyks

@nicolashmln
Copy link

nicolashmln commented Oct 29, 2023

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

Capture d’écran 2023-10-29 à 12 53 29

@rkflx
Copy link

rkflx commented Feb 12, 2024

@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.)

@alsaleem00 alsaleem00 reopened this Feb 12, 2024
@alsaleem00
Copy link
Author

Sorry, I did not continue in this direction as we were porting mapnik to Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants