Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用python中的gdal读取ecw文件?_Python_Windows_Gdal - Fatal编程技术网

用python中的gdal读取ecw文件?

用python中的gdal读取ecw文件?,python,windows,gdal,Python,Windows,Gdal,我从Windows 10上安装了gdal。 我添加了 PATH=C:\Users\workspace\gdal\bin, GDAL\u DATA=C:\Users\workspace\GDAL\bin\GDAL DATA和GDAL\u DRIVER\u PATH=C:\Users\workspace\GDAL\bin\plugins 我的系统和用户变量(这里我不确定这些是否正确)。 最后在Python3.6中安装了带有pip的gdal 我正在尝试读取这样的文件: ecw_path = r'fil

我从Windows 10上安装了gdal。 我添加了
PATH=C:\Users\workspace\gdal\bin
GDAL\u DATA=C:\Users\workspace\GDAL\bin\GDAL DATA
GDAL\u DRIVER\u PATH=C:\Users\workspace\GDAL\bin\plugins
我的系统和用户变量(这里我不确定这些是否正确)。 最后在Python3.6中安装了带有pip的gdal

我正在尝试读取这样的文件:

ecw_path = r'files\area1.ecw'

ecw_file = gdal.Open(ecw_path)
结果是
错误4:'files\area1.ecw'未被识别为受支持的文件格式。

因此,我找不到一种在python中读取ecw文件的有效方法