<br><br><div class="gmail_quote">2009/3/18 Nikos Alexandris <span dir="ltr">&lt;<a href="mailto:nikos.alexandris@felis.uni-freiburg.de">nikos.alexandris@felis.uni-freiburg.de</a>&gt;</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>
&gt; Hi you all,<br>
&gt;<br>
&gt; I am working with geotiff raster data served on a webgis (mapserver +<br>
&gt; pmapper) and I would like to serve a merged raster (DEM + its shaded<br>
&gt; relief) instead of serving two distinct raster/layer with my mapfile<br>
&gt; (one for the dem and one for the shaded relief).<br>
&gt;<br>
&gt; Should I go with r.mapcalc in order to obtain a suitable GTiff for<br>
&gt; mapserver?<br>
&gt;<br>
&gt; Regards<br>
&gt; 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 &quot;Percentage weight of first map for color blending&quot;)<br>
you&#39;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>