geopandas

Perform geospatial analysis on vector data with GeoPandas in Python.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/claude-scientific-skills --skill geopandas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geopandas
Source: https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/scientific-skills/geopandas
Command: npx skills add https://github.com/K-Dense-AI/claude-scientific-skills --skill geopandas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GeoPandas extends pandas to enable powerful geospatial data analysis, reading and writing common geographic formats, performing spatial operations, and creating maps.

Core Features & Use Cases

  • Spatial data structures: GeoSeries and GeoDataFrame for geometric data alongside tabular data.
  • I/O and CRS: Read/write Shapefiles, GeoJSON, GeoPackage, PostGIS, and reproject coordinates with CRS awareness.
  • Geometric operations: Buffer, bounds, centroid, intersection, and spatial joins.
  • Visualization: Plot maps and integrate with matplotlib/folium for static and interactive visuals.

Quick Start

  1. Install: pip install geopandas
  2. Read and plot: import geopandas as gpd; gdf = gpd.read_file("data.geojson"); gdf.plot()

Frequently Asked Questions about geopandas

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

FAQPage Schema
How do I read and analyze geographic data from Shapefiles or GeoJSON files?

GeoPandas reads geospatial vector data formats like Shapefiles, GeoJSON, and GeoPackage directly into GeoDataFrame objects, preserving geometry and attributes. Use `gpd.read_file()` to load data, then apply pandas operations and spatial methods for analysis.

What's the best way to perform spatial joins between geographic datasets?

Spatial joins in GeoPandas combine two GeoDataFrames based on geometric relationships using `sjoin()`. This operation matches geometries by intersection, containment, or proximity, returning merged tables with attributes from both inputs.

Can I transform coordinates between different coordinate reference systems?

GeoPandas manages CRS (coordinate reference systems) through the `to_crs()` method, enabling coordinate transformations and reprojections. Specify target CRS by EPSG code or WKT string to align datasets from different geographic sources.

How do I perform geometric operations like buffering, clipping, and calculating centroids?

GeoPandas wraps Shapely geometry operations—buffer, simplify, centroid, convex hull, intersection—as methods on GeoSeries and GeoDataFrame columns. These return new geometry objects for spatial analysis and map creation.

Does GeoPandas support visualization of geographic data?

GeoPandas integrates with matplotlib for static maps via the `.plot()` method and supports folium for interactive web-based visualization. Color-code by attribute, customize symbols, and overlay multiple layers.

What file formats can GeoPandas read and write?

GeoPandas handles Shapefiles, GeoJSON, GeoPackage, PostGIS databases, and other OGR-supported formats. Read with `gpd.read_file()` and write with `.to_file()`, maintaining geometry and CRS fidelity across conversions.