gdal-api

Read, write, transform, and analyze geospatial raster and vector data via the GDAL API.

49|9|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/znlgis/opengis-skills --skill gdal-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gdal-api
Source: https://github.com/znlgis/opengis-skills/tree/main/gdal-api
Command: npx skills add https://github.com/znlgis/opengis-skills --skill gdal-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GDAL API unifies access to 200+ raster and 100+ vector formats and simplifies programmatic reading, writing, transformation, and analysis of geospatial datasets across languages, removing the friction of format incompatibility, reprojection mistakes, and low-level I/O handling.

Core Features & Use Cases

  • Read and write common raster formats (GeoTIFF, COG, netCDF) and vector formats (Shapefile, GeoJSON, GeoPackage) with language bindings in C++, Python, Java, and C#.
  • Perform coordinate reference system management and accurate reprojection using PROJ, warp and resample rasters, and execute raster analytics and vector geometry operations (buffer, intersection, union).
  • Use cases include converting imagery between formats and CRSs, extracting raster bands to NumPy arrays for analysis, automating vector attribute edits and spatial filtering, and producing GeoPackage datasets for downstream GIS apps.

Quick Start

Open a GeoTIFF file, read its first raster band into a NumPy array, and return its geotransform and CRS.

Frequently Asked Questions about gdal-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert GeoTIFF raster data to a NumPy array for analysis?

To convert GeoTIFF raster data to a NumPy array, open the dataset using GDAL API and read the specific raster band into an array structure. This extracts pixel values alongside geotransform and coordinate reference system metadata for downstream analysis.

What is the best way to reproject vector data and manage coordinate reference systems?

The best way to reproject vector data and manage coordinate reference systems is using GDAL API integrated with PROJ. This handles accurate coordinate transformations across formats like Shapefile and GeoPackage while maintaining spatial integrity.

Can I use GDAL API with Python to automate vector editing and spatial filtering?

Yes, you can use GDAL API with Python to automate vector editing and spatial filtering. Python bindings enable programmatic geometry operations like buffer, intersection, and union directly on GeoJSON and Shapefile datasets.

Does GDAL API support raster warping and resampling across multiple geospatial formats?

GDAL API supports raster warping and resampling across 200+ raster formats including GeoTIFF, COG, and netCDF. It handles multi-format I/O, allowing seamless conversion and processing between different coordinate systems and file structures.

How do I programmatically create a GeoPackage dataset with proper CRS and NoData handling?

To programmatically create a GeoPackage dataset with proper CRS and NoData handling, use GDAL API to define the spatial reference, set geotransform parameters, and configure NoData values during dataset generation for downstream GIS applications.