Chapter 9. Exploring the Geospatial Data Abstraction Library (GDAL)
No discussion of open source platforms and libraries would be complete without an introduction to the Geospatial Data Abstraction Library (GDAL), a resource for efficiently processing raster and vector geospatial data. Working with both raster and vector data requires a collection of tools, and GDAL operates under the hood of many of the programs youâve used in this book, including ArcGIS, QGIS, and Google Earth. When relying on the programmatic ease of a graphical user interface, it is often easy to forget the complexity of combining diverse data types and formats in order to work efficiently with a unified data model. This is why GDAL is an important tool. It simplifies working with geospatial data across a wide range of formats and spatial reference systems.
In this chapter, weâll work with rasters and look at how to use the Spyder IDE to work with GDAL, including how to change your map projection with the warp
function, work with raster bands, transform files, and create binary masks. Weâll also do a quick orientation to three other useful resources for datasets to explore with GDAL: EarthExplorer, Copernicus Open Access Hub, and Google Earth Engine (GEE).
First, Iâll show you how to use the command line interface, also known as the terminal, to quickly read, transform, and reproject your geospatial data. Why the command line? If youâre working with multiple files that require the same functions, ...
Get Python for Geospatial Data Analysis now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.