[GRASS-dev] v.centroid: on boundaries only?

Hamish hamish_b at yahoo.com
Fri Jan 27 07:38:30 EST 2012

Paolo wrote:
> The current command for v.centroid in the grass
> qgis plugin is:
> <qgisgrassmodule label="Add missing centroids to closed
> boundaries" module="v.centroids">
>         <option key="input" layermask="0" typemask="area"/>
>         <option key="output"/>
>         <option key="option" answer="add" hidden="yes"/>
>         <option key="cat" answer="1"/>
>         <option key="step" answer="1"/>
> </qgisgrassmodule>
> Am I right saying that it should be
> typemask="boundary"
> ?

I'm not exactly sure what typemask= does, but by
looking at qgis/src/plugins/grass/qgsgrassmodule.cpp
it seems that it can only be one of point,line,area.

note the boundaries themselves are not acted upon,
and v.centroids is a simple wrapper around 
 v.category option=add type=area

> label="Add missing centroids to closed
>  boundaries"

might be expanded with "... to create areas"


More information about the grass-dev mailing list