2025 FOSS4G NA | GDAL's New CLI - Dan Baston
In this session from FOSS4G NA 2025, Dan Baston of I-Sciences presents GDAL's New CLI: A Ground-Up Redesign for Consistency and Power. Dan explores the significant overhaul of the GDAL (Geospatial Data Abstraction Library) command-line interface, moving away from the "swiss-army knife" approach of massive, inconsistent tools like gdalwarp and ogr2ogr toward a suite of single-purpose, highly predictable commands.
The presentation introduces the concept of "pipelines," a powerful new way to chain geospatial operations—such as clipping, reprojecting, and simplifying—without the need for intermediate files on disk. Dan also details the new Python API mapping, enhanced tab-completion for complex options, and over 10 brand-new native C++ utilities for raster calculation, zonal stats, and geometry cleaning that were previously only available as Python scripts or separate libraries.
Highlights:
🛰️ The "Burn the Village" Moment: Why the GDAL team decided to build a completely new CLI to fix decades of inconsistent command arguments
🔄 Single-Purpose Tools: Breaking down complex utilities into specialized commands like gdal_raster_clip, gdal_raster_mosaic, and gdal_raster_repro
🧩 Introducing Pipelines: How to use the exclamation mark (!) character to chain multiple vector and raster steps into a single readable command
⚙️ Automated Python Mapping: A look at the new gdal.alg module that provides direct, native access to all CLI tools without using subprocesses
🌐 Enhanced Discoverability: Using tab-completion to find available formats, EPSG codes, and even files stored in cloud-based virtual file systems (S3/GCS)
🏢 Serialized Workflows: Using the new .gdal_alg.json format to record and share complex processing chains as virtual datasets
🏗️ New Native Capabilities: A showcase of new C++ tools for raster reclassification, focal stats, moving window averages, and polygon coverage repair
For more content like this check out www.projectgeospatial.com
#GDAL #FOSS4G #Geospatial #CLI #GIS #Python #Cplusplus #RasterData #VectorData #OpenSource #DataEngineering #ProjectGeospatial #SoftwareDevelopment #Pipelines #ZonalStats