I used the instructions at https://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/
I downloaded the following files:
from osgeo import gdal
at the Python IDLE command line, everything appears to be OK. Then I type in
ds = gdal.Open( 'C:/testfile.DT1')
and again, it appears to be OK. However, when I type in
gt = ds.GetGeoTransform()
I get the following error message:
Traceback (most recent call last): File "", line 1, in gt = ds.GetGeoTransform()AttributeError: 'NoneType' object has no attribute 'GetGeoTransform'I have checked the DTED file and there is nothing wrong with it. I also tried the above with a tif and got the same result. I can get the GDAL executables to run, but not the GDAL Python scripts. Is there something that I should check regarding my install of GDAL?
أكثر...
I downloaded the following files:
- GDAL-1.11.1.win-amd64-py2.7.msi
- gdal-111-1800-x64-core.msi
from osgeo import gdal
at the Python IDLE command line, everything appears to be OK. Then I type in
ds = gdal.Open( 'C:/testfile.DT1')
and again, it appears to be OK. However, when I type in
gt = ds.GetGeoTransform()
I get the following error message:
Traceback (most recent call last): File "", line 1, in gt = ds.GetGeoTransform()AttributeError: 'NoneType' object has no attribute 'GetGeoTransform'I have checked the DTED file and there is nothing wrong with it. I also tried the above with a tif and got the same result. I can get the GDAL executables to run, but not the GDAL Python scripts. Is there something that I should check regarding my install of GDAL?
أكثر...