[GRASS-user] How to get centroid coordinates

Martin Landa landa.martin at gmail.com
Fri Aug 24 08:53:41 PDT 2012


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

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list