- Geospatial Development By Example with Python
- Pablo Carreira
- 195字
- 2021-07-16 09:30:55
Installing GDAL and OGR
GDAL (Geospatial Data Abstraction Library) is composed of two packages that come together: OGR handles geospatial vector file formats, including coordinate system transformations and vector operations. GDAL is the raster part of the library, and in version 1.11, it comes packed with 139 drivers that can read, and some even create rasters. GDAL also comes packed with functions for raster transformations and calculations such as resizing, clipping, reprojecting, and so on.
In the following tables, there's an excerpt of the list of GDAL and OGR drivers with the most common formats that you may find:

The following table describes the OGR drivers:

Note
You can find the full GDAL and OGR API documentation and the complete list of drivers at http://gdal.org/python/.
Windows
Again, we will use a wheel for the installation. Repeat the same procedure as before:
- Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/.
- Now, search for GDAL and download the file named
GDAL?1.11.3?cp27?none?win32.whl
. - Finally, install it with
pip
, as we did before.
Ubuntu Linux
Perform the following steps:
- Go to the terminal or open a new one.
- Then, enter the following command:
sudo apt-get install python-gdal
- Functional Python Programming
- 數據庫原理及應用(Access版)第3版
- Python自動化運維快速入門(第2版)
- C語言程序設計基礎與實驗指導
- 樂高機器人設計技巧:EV3結構設計與編程指導
- Unity Virtual Reality Projects
- 機器人Python青少年編程開發實例
- SQL基礎教程(視頻教學版)
- 正則表達式經典實例(第2版)
- PhoneGap Mobile Application Development Cookbook
- jQuery開發基礎教程
- 焊接機器人系統操作、編程與維護
- 青少年學Python(第1冊)
- JavaScript動態網頁編程
- Maker基地嘉年華:玩轉樂動魔盒學Scratch