On 27/01/17 21:35, Helmut Kudrnovsky wrote:
hi,

is there an easy way to load x,y (of centroid) and top, bottom, left, right
coordinates of every geometry (polygon, line) to the vector attribute table?

For the centroid coordinates:

v.db.addcolumn YourMap column="x double precision, y double precision"
v.to.db YourMap op=coor col=x,y

For the bounding box coordinates, I don't know any easy way. Would be a nice thing to have in v.to.db (see [1]).

Moritz


[1] http://trac.osgeo.org/grass/ticket/2122
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to