<div dir="ltr"><div class="gmail_default" style="font-size:small">thank you Nikos</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I meant that  creating buffers from a line, which also querying DEM values.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">DEM is in subquery position of buffer map</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 1:28 PM, Nikos Alexandris <span dir="ltr"><<a href="mailto:nik@nikosalexandris.net" target="_blank">nik@nikosalexandris.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Ahmet Temiz <<a href="mailto:ahmettemiz88@gmail.com">ahmettemiz88@gmail.com</a>> [2015-04-23 12:16:49 +0300]:<br>
<span class=""><br>
> hello,<br>
><br>
> Which function can we use to generate  a map that has conditional buffering<br>
> according to DEM from a line ?<br>
<br>
</span>Hello Ahmet,<br>
<br>
I don't understand the "from a line" part of your question. Yet, I guess<br>
you mean to keep a specific range of DEM values.<br>
<br>
You can directly use r.mapcalc for such tasks.<br>
<br>
1) Remember to set the extent and the resolution of the active<br>
computational region, it'll be also the one of the new map produced by<br>
r.mapcalc<br>
<br>
2) r.mapcalc 'NewMap = if( DEM > 100 && DEM < 200, DEM, null())'<br>
<br>
This example will write only DEM values between '100 < DEM < 200' in the<br>
"NewMap" and will set to NULL all other pixels that don't satisfy the<br>
above expression.  For more, please look at r.mapcalc's manual.<br>
<br>
Of course, all this is valid and achievable via the GUI.<br>
<br>
Regards, Nikos<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ahmet Temiz<br>Jeoloji Müh.<br>Afet ve Acil Durum Yönetimi Başkanlığı<br>Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu<br><br><br>________________________<br><br>Ahmet Temiz<br>Geological Eng.<br>Information Systems - GIS Group<br>Disaster and Emergency Management<br>of Presidency</div></div></div></div></div>
</div>