[GRASS-user] add a centroid in the center of polygon

Markus Neteler neteler at osgeo.org
Sat Jan 25 03:27:32 PST 2014


On Sat, Jan 25, 2014 at 12:08 PM, Markus Metz
<markus.metz.giswork at gmail.com> wrote:
> On Sat, Jan 25, 2014 at 12:10 AM, Milton Ribeiro
> <miltinho.astronauta at gmail.com> wrote:
>> Dear all,
>>
>> I have a polygon vector, and need to add point in the center of mass of each
>> one.
>> I used v.centroid, but it adds just a centroid, but not in the central
>> position of the polygon area.
>
> v.centerpoint from addons [0] does that.
>
> Markus M
>
> [0] http://grasswiki.osgeo.org/wiki/AddOns/GRASS7/vector#v.centerpoint

Right, I forgot about this nice addon!
Perhaps its functionality might be merged into v.centroids [1]?

markusN

[1] http://grass.osgeo.org/grass70/manuals/v.centroids.html


More information about the grass-user mailing list