gdal

gdal is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 96 tokens per session (4,790 once invoked), scanned A, original, MIT.

A command-line toolkit for processing geographic raster data, such as satellite images and elevation maps, and vector data, such as points, lines, and areas.

In plain words
What is it for?
Use it for format conversion, coordinate reprojection, digital-elevation-model analysis, vegetation-index calculations, mosaics, and vector operations.
Why use it?
It replaces one-off scripts with standard commands for inspecting, converting, reprojecting, and analyzing geospatial files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for format conversion, coordinate reprojection, digital-elevation-model analysis, vegetation-index calculations, mosaics, and vector operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/gdal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill gdal
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gdal

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/gdal/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/gdal)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/gdal"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/gdal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gdal

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/gdal"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/gdal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,790 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 311
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium MCP Rug Pull · line 75
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.04790
Opus 5.5 $0.00038 $0.01916
Sonnet 5.5 $0.00019 $0.00958
Haiku 4.5 $0.00010 $0.00479

Measured today against content hash ede3b50b9f2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gdal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

gis/gdal/SKILL.md · 489 lines

How it starts

The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/OSGeo/gdal

官方文档: https://gdal.org/en/latest/

源码命令文档: https://gdal.org/en/latest/programs/

最新版本: 3.13.3(截至 2026-10,下载页)

许可证: MIT

概述

GDAL 是地理空间数据处理的事实标准库。它提供了 50+ 个命令行工具,分为两大类:

  • OGR 工具(开放地理数据模型):处理矢量数据(点、线、面)
  • GDAL 工具:处理栅格数据(卫星影像、DEM、栅格地图)

环境准备

前置条件

部分 Linux 发行版与 GIS 软件栈会预装 GDAL(QGIS、PostGIS 客户端等),先用下面的命令确认工具在 PATH 中:

gdalinfo --version   # 验证 GDAL 版本
ogrinfo --version    # 验证 OGR 版本

安装方法

Linux (Debian/Ubuntu)
apt-get update
apt-get install gdal-bin python3-gdal
Linux (CentOS/RHEL)
yum install gdal gdal-devel
macOS (Homebrew)
brew install gdal
Conda
conda install -c conda-forge gdal
Docker

Docker Hub 上的 osgeo/gdal 已迁移(该镜像最后一次更新为 2023 年),现由 GHCR 发布:

docker run --rm -it ghcr.io/osgeo/gdal:latest bash

Python 绑定(可选)

某些 GDAL 工具(如 gdal_calc, gdal_merge, gdal_grid, gdal_polygonize)是 Python 脚本,需要安装 Python 绑定:

pip install GDAL
# 或
conda install -c conda-forge gdal

核心命令结构

新式 CLI (GDAL 3.11+)

GDAL 3.11 引入了统一的 gdal 命令行入口(官方文档标注 "Added in version 3.11";最新稳定版 3.13.3,2026-08-18 发布,见 下载页),后续版本持续加入 gdal vector concave-hull/convex-hull/dissolve/sort 等子命令,gdal dataset check 自 3.13 起提供:

gdal <command> <subcommand> [options] <inputs>

主要命令:

  • gdal info — 获取数据信息(自动检测栅格或矢量,等价 gdal raster info / gdal vector info)
  • gdal vector — 矢量操作入口(convert、reproject、clip、buffer、dissolve、make-valid、sql 等)
  • gdal raster — 栅格操作入口(convert、reproject、mosaic、clip、calc、contour 等)
  • gdal dataset — 数据集管理(check、copy、rename、delete、identify)
  • gdal pipeline — 把多个步骤串成一条命令
# 矢量重投影 + 格式转换(等价 ogr2ogr -t_srs ... -f GPKG)
gdal vector reproject --output-crs EPSG:3857 -o out.gpkg in.shp

# 栅格镶嵌(等价 gdal_merge.py / gdalwarp 多输入)
gdal raster mosaic -o mosaic.tif tile1.tif tile2.tif tile3.tif

# 数据集体检(3.13+)
gdal dataset check data.gpkg

Read the full file on GitHub · 489 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +29 lines ede3b50b9f2a
  2. 7d ago Changed · -34 lines · +19 tokens per session f54b984a2a93
  3. 13d ago Changed · -7 lines 3db004f046ab
  4. 1mo ago Changed 8f46a1a1fd99
  5. 1mo ago Changed b225443cf0c4
  6. 1mo ago First seen · 501 lines · 77 tokens per session scan A 7afbbf7163b9

Subscribe to this mod's changes

gdal is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 4,790 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

super-research

Autonomous research skill for open-ended, high-volume research work — an agent left running for a while (minutes to overnight) that produces honest, comparable, auditable evidence instead of a single one-shot answer. Covers eight modes selected by the request: (1) experiment loop — iteratively edit code, run, measure…

XiaomiMiMo/MiMo-Code · 0 tokens

clinical-reports

Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation (SOAP, H&P, discharge summaries). Full support with templates, regulatory compliance (HIPAA, FDA, ICH-GCP), and validation…

synthetic-sciences/openscience · 71 tokens

clinical-decision-support

Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading…

synthetic-sciences/openscience · 97 tokens

gget

Fast CLI/Python queries to 20+ bioinformatics databases. Use for quick lookups: gene info, BLAST searches, AlphaFold structures, enrichment analysis. Best for interactive exploration, simple queries. For batch processing or advanced BLAST use biopython; for multi-database Python workflows use bioservices.

synthetic-sciences/openscience · 66 tokens

brenda-database

Access BRENDA enzyme database via SOAP API. Retrieve kinetic parameters (Km, kcat), reaction equations, organism data, and substrate-specific enzyme information for biochemical research and metabolic pathway analysis.

synthetic-sciences/openscience · 43 tokens

geo-database

Access NCBI GEO for gene expression/genomics data. Search/download microarray and RNA-seq datasets (GSE, GSM, GPL), retrieve SOFT/Matrix files, for transcriptomics and expression analysis.

synthetic-sciences/openscience · 47 tokens