In fact, you can also use OGR python bindings, it is easy
from osgeo import ogr
# open grass vector
ds = ogr.Open('/grassdata/geol/test/vector/linevector/head')
layer = ds.GetLayer(0)
layer.GetName()
'linevector'
feat = layer.GetFeature(0)
geom =
This question was asked in
http://gis.stackexchange.com/questions/28061/how-to-access-vector-coordinates-in-grass-gis-from-python/28100#28100and
I propose a solution with
*v.out.ascii.*
But is there a better solution ?
My solution (a single line - L 7 1)
test =