GeoSun
unread,May 7, 2009, 1:54:40 AM5/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gdal+python+GIS+geosings论坛
ds = ogr.Open("g:/world.shp")
Traceback (most recent call last):
File "<pyshell#49>", line 1, in <module>
ds = ogr.Open("g:/world.shp")
File "D:\Program Files\Python25\lib\site-packages\ogr.py", line 127,
in Open
raise OGRError, 'Unable to open: ' + filename
OGRError: Unable to open: g:/world.shp
看了代码,应该是ds_o = _gdal.OGROpen( filename, update, 'NULL' )返回null ,仔细看了文件
路径,应该没问题啊,不知什么情况?