hotosm / HDM-CartoCSS

CartoCSS project focused on the Humanitarian Data Model
Other
138 stars 41 forks source link

Cut hillshade under certain treshold to make near to flat land transparent #136

Closed yohanboniface closed 10 years ago

yohanboniface commented 11 years ago

Need is to avoid the flat lands becoming grey (here only part of the data has hillshade, and so we see the colour changing):

screenshot from 2013-08-04 18 28 46

yohanboniface commented 11 years ago

Example from the doc of gdal_calc.py (thanks to @AndrewBuck):

# gdal_calc.py -A input.tif --outfile=result.tif --calc="A*(A>0)" --NoDataValue=0
yohanboniface commented 10 years ago

See also: https://gist.github.com/cquest/8179870

yohanboniface commented 10 years ago

Fixed, thanks a lot @cquest for the recipe!