Thanks a lot for your help. You got it right! The Problem is, that there
is not only one city (so it is not only one agricultural area) but 187
of them. So I have to calculate the area of the resulting map after
every run for each point. In fact, i need something like "r.lake" but it
should stop on each starting-point, when the required area for this
point is reached. Is there a possibility to do something like that?
Thanks a lot
Martin
-------- Original-Nachricht --------
Betreff: Re: [GRASS-user] buffer vector within a given area
Datum: Tue, 28 Apr 2009 16:02:52 +0300
Von: Maris Nartiss <maris.gis@gmail.com>
An: Moritz Lennert <mlennert@club.worldonline.be>
CC: Martin Schweizer <schweizermartin@students.unibe.ch>,
grass-user@lists.osgeo.org
Referenzen: <49EF6468.5010005@students.unibe.ch>
<49EF87C9.6000501@club.worldonline.be>
<49F0DC15.2080102@students.unibe.ch>
<402115d10904240705wb2f9a09h2dc930ee664f26d6@mail.gmail.com>
<49F1CF64.4010206@students.unibe.ch>
<49F2C9E0.4000508@club.worldonline.be>If I got it right - You need to fill possible agriculture land till it
reaches required area.
I think You can use mapcalc sample provided in r.lake documentation.
Just replace ${variables} with Your map name and calculate resulting
map area after every run. Mask nonagriculture land with MASK and it
will not be used.
Like (pseudocode):
while $area<$target:
r.mapcalc newmap={code from r.lake docs}
area = r.report newmap areaIf You need additional help, drop a note.
Maris.