[GRASS-user] conditional buffering with DEM

Ahmet Temiz ahmettemiz88 at gmail.com
Thu Apr 23 07:44:44 PDT 2015


thank you Nikos

I meant that  creating buffers from a line, which also querying DEM values.

DEM is in subquery position of buffer map

regards

On Thu, Apr 23, 2015 at 1:28 PM, Nikos Alexandris <nik at nikosalexandris.net>
wrote:

> * Ahmet Temiz <ahmettemiz88 at gmail.com> [2015-04-23 12:16:49 +0300]:
>
> > hello,
> >
> > Which function can we use to generate  a map that has conditional
> buffering
> > according to DEM from a line ?
>
> Hello Ahmet,
>
> I don't understand the "from a line" part of your question. Yet, I guess
> you mean to keep a specific range of DEM values.
>
> You can directly use r.mapcalc for such tasks.
>
> 1) Remember to set the extent and the resolution of the active
> computational region, it'll be also the one of the new map produced by
> r.mapcalc
>
> 2) r.mapcalc 'NewMap = if( DEM > 100 && DEM < 200, DEM, null())'
>
> This example will write only DEM values between '100 < DEM < 200' in the
> "NewMap" and will set to NULL all other pixels that don't satisfy the
> above expression.  For more, please look at r.mapcalc's manual.
>
> Of course, all this is valid and achievable via the GUI.
>
> Regards, Nikos
>
>


-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150423/0291c179/attachment-0001.html>


More information about the grass-user mailing list