Getting started with gdal


GDAL (Geospatial Data Abstraction Library) is a computer software library that provides tools for manipulating raster and vector geospatial data.

Installation on Linux

GDAL is available in the default repositories of most popular Linux distributions and can be installed in the same way that packages in a Linux distribution are usually installed.

apt-get install libgdal-dev

CPLUS_INCLUDE_PATH and C_INCLUDE_PATH are necessary in order to include these corresponding libraries.

export CPLUS_INCLUDE_PATH=/usr/include/gdal

export C_INCLUDE_PATH=/usr/include/gdal

GDAL can also be installed with Python’s package manager pip.

xe pip install gdal

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow