[GRASS-user] r.to.vect and then v.clean using tool=rmarea createspolygonsinstead of holes.

Moskovitz, Bob Bob.Moskovitz at conservation.ca.gov
Fri Dec 12 16:28:54 EST 2008


How do I pack up my raster so I can let you see what is happening?  I'd like to send it to you or any other dev if possible.

> -----Original Message-----
> From: neteler.osgeo at gmail.com 
> [mailto:neteler.osgeo at gmail.com]On Behalf
> Of Markus Neteler
> Sent: Friday, December 12, 2008 1:17 PM
> To: Moskovitz, Bob
> Cc: Markus Metz; grass-user at lists.osgeo.org
> Subject: Re: [GRASS-user] r.to.vect and then v.clean using tool=rmarea
> createspolygonsinstead of holes.
> 
> 
> 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