It appears that you don't want to add the rasters but be able to query both values at once. From the command line you can use r.what.rast rast=raster_1,raster_2 <missing coordinates part, don't have grass in front of me now> and you will get the values for both rasters at the desired coords. I don't know how to do that using the grass GUI though
Cheers Daniel On Tue, May 20, 2008 at 6:49 AM, <[EMAIL PROTECTED]> wrote: > hi, > > r.mapcalc sum=map1+map2 would not help? > > j > > 2008/5/20, christian Brandt <[EMAIL PROTECTED]>: >> >> Dear list, >> >> I have two rasters with elevation data (DEM and buildings, both floating >> point) which I would like to overlay so that the resulting raster obtains >> the summarized z-values of both rasters. >> So I tried the r.patch and the r.mapcalculator with the result of just >> <physically> overlaid layers. E.g. at one cell where the DEM holds the >> z-value 435.0 m and the building raster the z-value 10.1 there still remain >> the 435.1 m in the resulting raster. >> In case of r.mapcalculator, I used the Layer A + Layer B option. >> >> How can I get the summarized values of both raster layers? >> >> Regards >> >> Christian >> >> _________________________________________________________________ >> Invite your mail contacts to join your friends list with Windows Live >> Spaces. It's easy! >> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > > > -- > Jachym Cepicky > e-mail: jachym.cepicky gmail com > URL: http://les-ejk.cz > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
