Geo-Python

Python is connected with several libraries providing many open-source and commercial (proprietary) functions for the analyses of geospatial data. This section introduces both, open-source and (briefly) the commercial arcpy package. The goal of this section is to provide an understand ing of how geospatial data can be used and manipulated with Python code. The file manipulation involves logical and algebraic operations, and conversion from and to other geospatial file formats.

Requirements

Make sure you understand the basics of Python, especially data types, error handling, functions, and working with external libraries (modules and packages).

Tip

  1. Start with reading the Geospatial data page to understand the underpinnings of any geospatial analysis.

  2. Use QGIS to display geospatial data and to create maps in PDF or image formats (e.g., tif, png, jpg).

The descriptions of open source packages for geospatial data handling build on explanations from Michael Diener’s Python Geospatial Analysis Cookbook (open access under MIT license). Therefore, if you want to learn more details about any here information provided, take a look at this comprehensive e-book.

Another excellent source of inspiration with many open-sourced examples is pcjericks github repository py-gdalogr-cookbook.