geopandas

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

A Python library and guide for working with geographic shapes and location-based data, such as points, lines, and areas.

In plain words
What is it for?
Use it to work with shapefiles and other geographic files, perform spatial joins and overlays, manage coordinate systems, create maps, and connect to PostGIS databases.
Why use it?
It lets tabular data include geometry so developers can compare, combine, transform, read, write, and display spatial information.

Skill for Claude CodeCodex

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

Good fit Use it to work with shapefiles and other geographic files, perform spatial joins and overlays, manage coordinate systems, create maps, and connect to PostGIS databases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/geopandas
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 geopandas
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 geopandas

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/geopandas/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/geopandas)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geopandas"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geopandas/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 geopandas

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geopandas"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geopandas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,223 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 pass 7 Sept 2026
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.00049 $0.04223
Opus 5 $0.00024 $0.02112
Sonnet 5 $0.00010 $0.00845
Haiku 4.5 $0.00005 $0.00422

Measured 2d ago against content hash 434b9932d0f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

geopandas 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 2d ago.

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/geopandas/SKILL.md · 381 lines

How it starts

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

项目地址: https://github.com/geopandas/geopandas

官方文档: https://geopandas.readthedocs.io

官网: https://geopandas.org

许可证: BSD-3-Clause

概述

GeoPandas 是 Python 地理空间矢量数据处理的核心库,在 pandas DataFrame 基础上扩展了几何列支持。核心类 GeoDataFrame(继承 pandas.DataFrame)和 GeoSeries(继承 pandas.Series)通过 Shapely 提供几何运算、通过 pyproj 提供坐标系管理、通过 pyogrio/fiona 提供文件 IO。

依赖关系

核心依赖 最低版本 用途
pandas >= 2.0.0 DataFrame 基类
shapely >= 2.0.0 几何对象与运算 (GEOS)
pyproj >= 3.5.0 CRS 处理与坐标变换
pyogrio >= 0.7.2 默认文件 IO 引擎 (GDAL/OGR)
numpy >= 1.24 数组运算
可选依赖 用途
matplotlib >= 3.5 静态地图绘制 .plot()
folium 交互式地图 .explore()
mapclassify >= 2.7 分级设色分类方案
fiona >= 1.8.21 备选文件 IO 引擎
pyarrow >= 15.0.0 Parquet/Feather/Arrow 支持
geopy 地理编码
SQLAlchemy >= 2.0 + GeoAlchemy2 PostGIS 读写
xyzservices 瓦片底图服务

全局配置

import geopandas as gpd
gpd.options.display_precision  # int|None, WKT 小数位数 (0-16)
gpd.options.io_engine          # None|"pyogrio"|"fiona"

核心类(GeoSeries/GeoDataFrame)完整 API 参考见 reference/core-api.md

IO 模块

文件读写

gpd.read_file(filename, bbox=None, mask=None, columns=None, rows=None, engine=None, **kwargs)
gdf.to_file(filename, driver=None, schema=None, index=None, **kwargs)
gpd.list_layers(filename)  # → DataFrame (layer_name, geometry_type)

支持的文件格式(扩展名 → 驱动):

扩展名 驱动
.shp ESRI Shapefile
.json, .geojson GeoJSON
.geojsonl, .geojsons GeoJSONSeq
.gpkg GPKG (GeoPackage)
.gml, .xml GML
.gpx GPX
.csv CSV
.fgb FlatGeobuf
.dxf DXF
.tab, .mif, .mid MapInfo File

引擎选项:"pyogrio"(默认)或 "fiona"。支持所有 GDAL/OGR 驱动。

GeoParquet / Feather

gpd.read_parquet(path, columns=None, storage_options=None, bbox=None, **kwargs)
gpd.read_feather(path, columns=None, **kwargs)
gdf.to_parquet(path, compression="snappy", geometry_encoding="WKB",
               write_covering_bbox=False, schema_version=None, **kwargs)
gdf.to_feather(path, compression=None, schema_version=None, **kwargs)

Read the full file on GitHub · 381 lines

Files

What ships with it

1 file 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. 2d ago Changed 434b9932d0f2
  2. 8d ago Changed · -213 lines 40c2ee571be4
  3. 12d ago First seen · 594 lines · 49 tokens per session scan A c92c6c845519

Subscribe to this mod's changes

geopandas is a skill published in the GitHub repository znlgis/opengis-skills (61 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 4,223 once invoked, about $0.0002 per session on Opus 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.