[mapserver-users] DEM color ramps

Smith, Michael ERDC-RDE-CRREL-NH Michael.Smith at erdc.dren.mil
Mon Jun 17 09:46:08 PDT 2013


Mark,

What I used is the following

gdaldem hillshade ${filename}.tif ${filename}_hs.tif -z 5 -az 90
gdaladdo -r average ${filename}_hs.tif 2 4 8 16 32
gdaldem color-relief ${filename}.tif colorramp.txt ${filename}_cr.tif -co
compress=jpeg -co PHOTOMETRIC=YCBCR -co tiled=yes
gdaladdo -r average ${filename}_cr.tif 2 4 8 16 32 --config
COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config
INTERLEAVE_OVERVIEW PIXEL

Then created tileindexes of the hs and cr files. I then set the opacity of
my CR layer at 70%

And my colorramp.txt file looks like this

5000 245  244  242
4500 224  222  216
4000 202  195  184
3500 186  174  154
3000 172  154  124
2500 170  135  83
2000 185  152  90
1500 195  167  107
1000 202  185  130
900 211  202  157
800 222  214  163
700 232  225  182
600 239  235  192
500 225  228  181
400 209  215  171
300 189  204  150
200 168  198  143
100 148  191  139
0 172  208  165
-20 167 223 210
nv 0 0 0 0 

Mike

-- 
Michael Smith

Remote Sensing/GIS Center
US Army Corps of Engineers







On 6/17/13  12:33 PM, "Mark Volz" <MarkVolz at co.lyon.mn.us> wrote:

>Hi,
>
>I would like to add a color ramp to my elevation (DEM) layer.  If anyone
>has any .map files or tips for creating a DEM color ramp please let me
>know.
>
>Thanks
>
>Mark Volz, GISP
>GIS Specialist
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list