[GRASS-dev] v.what.rast support for centroids, v.rast.stats speed, r.category update

Hamish hamish_nospam at yahoo.com
Wed Oct 10 03:11:55 EDT 2007


Michael Barton wrote:
> 
> This brings up an issue that we might want to think about for GRASS 7.
> Currently, centroids must always be created manually to transform a
> closed polyline into an area. While we might want to keep this as an
> option (but maybe not), I think it would be better to have some kind of
> 'area-creation' utility that would transform a close polyline into an
> area by automatically adding a centroid at a predefined center location
> (geometric center or other measure) and adding a cat value. Then
> analytical utilities like you are discussing here could be more
> reliable.

(v.type + v.centroids)

I don't think you can convert automatically all closed boundaries as
some of the closed boundaries may be islands/holes within an area, and
you risk turning them into positives.


Hamish




More information about the grass-dev mailing list