cyclosm-cartocss-style icon indicating copy to clipboard operation
cyclosm-cartocss-style copied to clipboard

Hillshade is showing dark

Open alsaleem00 opened this issue 3 years ago • 5 comments
trafficstars

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?

alsaleem00 avatar May 11 '22 01:05 alsaleem00

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

Phyks avatar Jan 18 '23 17:01 Phyks

Thanks @Phyks

alsaleem00 avatar Jan 18 '23 17:01 alsaleem00

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

nicolashmln avatar Oct 29 '23 01:10 nicolashmln

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

rkflx avatar Feb 12 '24 00:02 rkflx

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

alsaleem00 avatar Feb 12 '24 13:02 alsaleem00