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

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
    
主站蜘蛛池模板: 泾阳县| 资源县| 平泉县| 商水县| 洛阳市| 乐亭县| 奎屯市| 玉溪市| 东阿县| 芦溪县| 平顺县| 油尖旺区| 舟曲县| 闽清县| 青铜峡市| 汝州市| 洱源县| 东至县| 尼玛县| 黄大仙区| 玛曲县| 广灵县| 龙川县| 深州市| 孙吴县| 鹤壁市| 长顺县| 铜鼓县| 浦东新区| 大庆市| 合阳县| 汽车| 东丽区| 资兴市| 合江县| 咸丰县| 丹棱县| 黄平县| 布拖县| 云龙县| 小金县|