[GRASS5] [bug #875] (grass) v.reclass does nothing...
neteler at itc.it
Thu Dec 20 06:17:43 EST 2001
On Thu, Dec 20, 2001 at 03:03:20AM -0800, Alex Shevlakov wrote:
> it seems to me that v.reclass works as it is supposed
> to in your example:
> cat fields.recl | v.reclass fields out=fields.recl
> here is the result query d.what.vect output:
> So actually there are only 2 categories in fields.recl
you are right! Thanks for the good news, it seems I was confused by
- d.area colors according to the polygon number, not the category
Maybe we want a flag "-c" to color according to the categorry numbers
and not to the polygon numbers?
- v.reclass does not eliminate boundaries properly when two adjacent
polygons are assigned to the same category, as you also say.
> Each polygon would be colored differently (even those
> having the same new category) in d.area.
Sorry for this, as I have implemented that flag in d.area
I should have known (oops :-)
> You can try -d option with v.reclass and get fewer
> colors in the result map, but not two. This is what I
> think strange (bug?).
Yes, this is *really* a bug. "-d" also damages the topology
in the current implementation as open polygons occur.
> To get only two polygons in the result d.area, perhaps
> you'd better use v.extract with -d.
Yes - my intention was to test v.reclass.
Thanks for your hints,
> --- Markus Neteler via RT <grass-bugs at intevation.de>
> > Hi Eric,
> > I tried again today, but v.reclass still produces
> > in=out results.
> > The same procedure works well with raster maps
> > (using Spearfish,
> > note that I am *not* in PERMANENT mapset):
> > cat fields.recl
> > 1 thru 62 = 1 private
> > 63 = 2 Black Hills Natl. Forest
> > cat fields.recl | r.reclass fields out=fields.recl
> > d.rast fields
> > d.rast fields.recl
> > -> result is fine
> > cat fields.recl | v.reclass fields type=area
> > out=fields.recl
> > v.support fields.recl
> > d.area -f fields
> > d.area -f fields.recl
> > -> result is identical - oops.
> > Is it possible for you to try my example? Would be
> > great...
> > Thanks,
> > Markus
> > -------------------------------------------- Managed
> > by Request Tracker
> > _______________________________________________
> > grass5 mailing list
> > grass5 at grass.itc.it
> > http://grass.itc.it/mailman/listinfo/grass5
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> grass5 mailing list
> grass5 at grass.itc.it
ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
Project on Predictive Models for the Environment
Via Sommarive, 18 - 38050 Povo (Trento), Italia
tel +39 0461 314 -520 (fax -591) http://mpa.itc.it
More information about the grass-dev