On Nov 2, 2007 1:48 AM, Moritz Lennert <mlennert@club.worldonline.be> wrote:
On Fri, November 2, 2007 00:45, Stefan Eriksson wrote:
> Hello,
>
> I am absolutely new to GRASS, so please forgive me if my questions are
> a bit naive.
>
> I am trying to create isoareas from DEM data.
> So far I have managed to create the polygons from DEM data by
>> r.mapcalc "newElev2 = round(elevation.dem / 100) * 100"
> 100%
>> r.to.vect
Have you tried r.contour ?
Yes, but I want polygons rather than lines as output. r.contour only
produce lines, does it not?
On 11/2/07, Stefan Eriksson <stefan.piaostefan@gmail.com> wrote:
On Nov 2, 2007 1:48 AM, Moritz Lennert <mlennert@club.worldonline.be> wrote:
> On Fri, November 2, 2007 00:45, Stefan Eriksson wrote:
> > Hello,
> >
> > I am absolutely new to GRASS, so please forgive me if my questions are
> > a bit naive.
> >
> > I am trying to create isoareas from DEM data.
> > So far I have managed to create the polygons from DEM data by
> >> r.mapcalc "newElev2 = round(elevation.dem / 100) * 100"
> > 100%
> >> r.to.vect
>
> Have you tried r.contour ?
Yes, but I want polygons rather than lines as output. r.contour only
produce lines, does it not?
Another approach might be to classify the raster using r.reclass then
convert to polygons using r.to.vect.
after r.contour use v.type to change line to boundary
best
maciej
Maciej Tomaszczyk
Polish Geological Institute
Geological Mapping Department
-----Wiadomość oryginalna-----
Od: grassuser-bounces@grass.itc.it w imieniu Stefan Eriksson
Wysłano: Pt 2007-11-02 19:11
Do: Moritz Lennert
DW: grassuser@grass.itc.it
Temat: Re: [GRASS-user] isoareas from DEM data
> > I am trying to create isoareas from DEM data.
> > So far I have managed to create the polygons from DEM data by
> >> r.mapcalc "newElev2 = round(elevation.dem / 100) * 100"
> > 100%
> >> r.to.vect
Moritz Lennert wrote:
> Have you tried r.contour ?
Stefan Eriksson wrote:
Yes, but I want polygons rather than lines as output. r.contour only
produce lines, does it not?
Convert lines to polygons with 'v.type line,boundary' and v.centroids.
Areas in GRASS are virtual features made from boundaries + centroids.
The centroid will typically hold the attribute data (like elevation range) and
the boundary will not have a category (it is ambiguous as to which area
touching the boundary belongs to the attribute. Note that many GRASS vector
modules only work on features with category numbers, add/remove those with
v.category.
Hamish
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com