[GRASS-user] raster merging

Hi you all,

I am working with geotiff raster data served on a webgis (mapserver + pmapper) and I would like to serve a merged raster (DEM + its shaded relief) instead of serving two distinct raster/layer with my mapfile (one for the dem and one for the shaded relief).

Should I go with r.mapcalc in order to obtain a suitable GTiff for mapserver?

Regards
raffaele

On Wed, 2009-03-18 at 16:17 +0100, Cassiel wrote:

Hi you all,

I am working with geotiff raster data served on a webgis (mapserver +
pmapper) and I would like to serve a merged raster (DEM + its shaded
relief) instead of serving two distinct raster/layer with my mapfile
(one for the dem and one for the shaded relief).

Should I go with r.mapcalc in order to obtain a suitable GTiff for
mapserver?

Regards
raffaele

Raffaele,

perhaps r.blend is what you are looking for. After some trial and error
(concerning the "Percentage weight of first map for color blending")
you'll get a nice looking shaded DEM that you can use (export).

Kind regards, Nikos

2009/3/18 Nikos Alexandris <nikos.alexandris@felis.uni-freiburg.de>

On Wed, 2009-03-18 at 16:17 +0100, Cassiel wrote:

Hi you all,

I am working with geotiff raster data served on a webgis (mapserver +
pmapper) and I would like to serve a merged raster (DEM + its shaded
relief) instead of serving two distinct raster/layer with my mapfile
(one for the dem and one for the shaded relief).

Should I go with r.mapcalc in order to obtain a suitable GTiff for
mapserver?

Regards
raffaele

Raffaele,

perhaps r.blend is what you are looking for. After some trial and error
(concerning the “Percentage weight of first map for color blending”)
you’ll get a nice looking shaded DEM that you can use (export).

Kind regards, Nikos

Yes it is,

running

g.region res=80
r.blend first=italia20m second=shade80 output=m80 percent=50
r.composite -d red=m80.r green=m80.g blue=m80.b levels=32 output=dem80
r.out.tiff -t input=dem80 output=dem80.tif compression=lzw

give me the GTiff I wanted.

thank you for helping.

Regards
raffaele