[GRASS-user] How to get centroid coordinates

Margherita Di Leo diregola at gmail.com
Mon Aug 27 00:00:08 PDT 2012


On Fri, Aug 24, 2012 at 5:53 PM, Martin Landa <landa.martin at gmail.com>wrote:

> Hi,
>
> 2012/8/24 Margherita Di Leo <diregola at gmail.com>:
> > v.extract in=poly out=centr type=centroid
> > v.type in=centr out=centr_pts from_type=centroid to_type=point
> > v.db.addcolumn map=centr_pts col="x double precision,y double precision"
> > v.to.db map=centr_pts option=coor col=x,y
>
> you could also use v.out.ascii
>
> v.out.ascii in=poly type=centroid
>

Nice! Grazie Martin.

ciao

>
> --
Dr. Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120827/18199d99/attachment.html>


More information about the grass-user mailing list