When I try to access one of the GRASS vector files through Python OGR bindings, it gives error:
Here is the script code in Python 2.7.3 IDLE (GUI) in Windows 7.
from osgeo import ogr
ds = ogr.Open('D:/UEL/GrassGISDB/SLD99/LBS/vector/CluterCleaned/head')
layer = ds.GetLayer(0)
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
layer = ds.GetLayer(0)
AttributeError: 'NoneType' object has no attribute 'GetLayer'
When i print ds, it is None. I think problem lies in the ds. Any help?