[GRASS-user] r.to.vect and then v.clean using tool=rmarea
createspolygonsinstead of holes.
Markus Neteler
neteler at osgeo.org
Fri Dec 12 16:17:17 EST 2008
On Fri, Dec 12, 2008 at 9:01 PM, Moskovitz, Bob
<Bob.Moskovitz at conservation.ca.gov> wrote:
> So, what would cause r.to.vect to create areas without centroids?
I have tried r.to.vect with a Spearfish map and it looks ok:
g.region rast=trn.sites
d.mon x0
d.rast trn.sites
r.to.vect trn.sites out=trn feature=area
Extracting areas...
100%
100%
Building topology for vector map <trn>...
Registering primitives...
74 primitives registered
903 vertices registered
Building areas...
100%
20 areas built
2 isles built
Attaching islands...
100%
Attaching centroids...
100%
Number of nodes: 56
Number of primitives: 74
Number of points: 0
Number of lines: 0
Number of boundaries: 54
Number of centroids: 20
Number of areas: 20
Number of isles: 2
r.to.vect complete.
d.vect trn
d.vect trn disp=topo
v.out.ascii trn format=standard
-> boundaries and centroids
May a potential problem in r.to.vect depend on the shape or the
boundary lengths? Obviously, a reproducible example is desired.
Markus
More information about the grass-user
mailing list