官术网_书友最值得收藏!

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:

  1. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/.
  2. Now, search for GDAL and download the file named GDAL?1.11.3?cp27?none?win32.whl.
  3. Finally, install it with pip, as we did before.

Ubuntu Linux

Perform the following steps:

  1. Go to the terminal or open a new one.
  2. Then, enter the following command:
    sudo apt-get install python-gdal
    
主站蜘蛛池模板: 黄石市| 清镇市| 天祝| 嘉祥县| 昌图县| 县级市| 涟水县| 平南县| 拉孜县| 应城市| 梅河口市| 柳林县| 出国| 清镇市| 潢川县| 武冈市| 大埔区| 平和县| 营口市| 靖西县| 宁夏| 白城市| 翁源县| 沙湾县| 大竹县| 自治县| 汤阴县| 大庆市| 赞皇县| 剑阁县| 汾西县| 沿河| 四子王旗| 佛学| 灵璧县| 临武县| 西城区| 靖宇县| 隆回县| 南皮县| 中西区|