[GRASSLIST:9467] Re: r.to.vect give strange results

Hamish hamish_nospam at yahoo.com
Tue Dec 13 22:21:04 EST 2005


> I'm trying to convert a raster into a vector with several areas, and  
> I am getting very strange results.  r.to.vect gives me a vector that  
> is a box drawn around every pixel in the raster, with a centroid for  
> each box.  So I ran r.mapcalc to convert the raster into a binary  
> raster, and then ran r.to.vect again.  This time, the r.to.vect says  
> the file has not been properly thinned.  so I ran r.thin first and  
> then r.to.vect again - still says that the file has not been properly
> thinned.  What am I missing?  This should be easy.

threshold with r.reclass or r.maplcac? or simply convert a floating
point map to an integer map (DCELL to CELL) with r.mapcalc's int(mapname)?

-v flag?


see also r.contour



Hamish




More information about the grass-user mailing list