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

Moritz Lennert mlennert at club.worldonline.be
Fri Jan 27 07:37:40 EST 2012


On 27/01/12 13:14, Paolo Cavallini wrote:
> Hi all.
> 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"
> ?

typemask is not an option for v.centroid, but a grass-plugin specific 
parameter. What does it do ?

If you give v.centroid a map with some areas (i.e. boundaries + 
centroids) and some boundaries (i.e. without centroids), it will just 
add centroids to the boundaries without centroids.

Moritz


More information about the grass-dev mailing list