[GRASS-user] retrieve centroids from polygons

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon Dec 1 09:15:44 EST 2008


On Mon, 2008-12-01 at 14:57 +0100, Niels Thevs wrote:
> Hi,
> 
> how can I extract the centroids from polygons and transform them into a 
> point vector layer ? I have tiny polygons as groundtruth data for a 
> satellite image analysis and I would like to retrieve the centroids as 
> points so that I can use v.what.rast, in order to obtain the spectral 
> information for the groundtruth data.
> 
> Best regards
> 
> Niels

Hi Niels!

You probably need to use "v.extract type=centroid".

Regards, Nikos



More information about the grass-user mailing list