<br><br><div class="gmail_quote">2009/3/18 Nikos Alexandris <span dir="ltr"><<a href="mailto:nikos.alexandris@felis.uni-freiburg.de">nikos.alexandris@felis.uni-freiburg.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, 2009-03-18 at 16:17 +0100, Cassiel wrote:<br>
> Hi you all,<br>
><br>
> I am working with geotiff raster data served on a webgis (mapserver +<br>
> pmapper) and I would like to serve a merged raster (DEM + its shaded<br>
> relief) instead of serving two distinct raster/layer with my mapfile<br>
> (one for the dem and one for the shaded relief).<br>
><br>
> Should I go with r.mapcalc in order to obtain a suitable GTiff for<br>
> mapserver?<br>
><br>
> Regards<br>
> raffaele<br>
<br>
</div></div>Raffaele,<br>
<br>
perhaps r.blend is what you are looking for. After some trial and error<br>
(concerning the "Percentage weight of first map for color blending")<br>
you'll get a nice looking shaded DEM that you can use (export).<br>
<br>
Kind regards, Nikos<br>
</blockquote><div><br>Yes it is,<br><br>running<br><br>g.region res=80<br>r.blend first=italia20m second=shade80 output=m80 percent=50<br>r.composite -d red=m80.r green=m80.g blue=m80.b levels=32 output=dem80<br>r.out.tiff -t input=dem80 output=dem80.tif compression=lzw<br>
<br>give me the GTiff I wanted.<br><br>thank you for helping.<br><br>Regards<br>raffaele <br></div></div>