1. Go to http://www.gdal.org/to download the gdaldatabase.CodeCompilation is also good for downloading.Source codeAnd then compile it locally. This method is described a lot online. I am not a C ++ProgramSo I chose another method: Go to http://download.osgeo.org/gdal/win32/to download the compiled code. The content of this address is shown below:
Download and enter the directory of the corresponding version as needed. For example, in the directory of version 1.6, the content is as follows:
Qdalwin32exe160.zip is the compiled library file. Download and decompress the file to a directory, such as c: \ qdal, set the system path, and append the directory c: \ qdal \ bin, add a system variable named gdal_data with the value c: \ qdal \ data.
Go to http://pypi.python.org/pypi/gdal/to download the python的 and install it.
To verify whether the installation is successful, run the following command:
>>> From osgeo import gdal
>>> From osgeo. gdalconst import *
>>> Dataset = gdal. Open ('d:/test.jpg ', ga_readonly)
>>> Dataset. getdriver (). shortname
>>> 'Jpeg'
If no error message is displayed, the database has been installed.