[mapserver-users] DEM color ramps
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Mon Jun 17 10:05:21 PDT 2013
Hi,
Here you can find some more GDAL commands and a nice map as a result.
https://groups.google.com/forum/#!msg/openjump-users/oedpVya8qNk/7Tk5y0xxYAoJ
Andrei has created several images with GDAL and finally merged them together with Gimp. I do not know if this merging could be done with GDAL also.
-Jukka Rahkonen-
________________________________________
Smith, Michael wrote:
> 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
_______________________________________________
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