geopandas

Manipulate and analyze geospatial vector data with Python.

2|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill geopandas-weiwei-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geopandas
Source: https://github.com/Weiwei-Mao/hydrology-skills/tree/main/hydrology-skills/geopandas
Command: npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill geopandas-weiwei-mao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires geopandas, shapely, fiona, pyproj, pandas, numpy, contextily, mapclassify, pyarrow, psycopg2, geoalchemy2, folium, cartopy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers users to efficiently process, analyze, and visualize geospatial vector data, overcoming the complexities of working with geographic information systems (GIS) data.

Core Features & Use Cases

  • Data Handling: Read and write various vector formats (Shapefile, GeoJSON, GeoPackage, PostGIS).
  • Spatial Analysis: Perform operations like buffering, spatial joins, overlay analysis, and dissolve.
  • Visualization: Create static and interactive maps, including choropleth maps.
  • Use Case: Analyze the spatial relationship between population density and environmental hazard zones within a specific region, then visualize the results on a map.

Quick Start

Use the geopandas skill to read the file 'data.geojson' and print the first 5 rows.

Frequently Asked Questions about geopandas

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

FAQPage Schema
How do I perform spatial joins and overlay analysis on vector data in Python?

Spatial joins and overlay analysis on vector data are performed using Python by leveraging geopandas combined with shapely and fiona for core geometric operations and data alignment. You can execute complex spatial queries to analyze relationships between geographic features efficiently.

Can I read and write different vector formats like Shapefile, GeoJSON, and GeoPackage?

Yes, you can read and write diverse vector formats including Shapefile, GeoJSON, GeoPackage, and PostGIS. The functionality relies on fiona for file access and pyproj for coordinate reference system transformations, ensuring accurate geospatial data handling across various formats.

What is the best way to create choropleth maps and visualize spatial analysis results?

Creating choropleth maps and visualizing spatial analysis results is best achieved using geopandas with mapclassify for data classification. You can generate static maps or interactive visualizations by integrating folium and contextily for basemaps.

Does geopandas work with PostGIS databases for spatial data storage and queries?

Yes, geopandas works with PostGIS databases for spatial data storage and queries by utilizing psycopg2 and geoalchemy2. This integration allows you to read spatial data directly from a PostGIS database into a GeoDataFrame for analysis and manipulation.

How do I handle coordinate reference systems when processing geospatial vector data?

Handling coordinate reference systems when processing geospatial vector data requires pyproj to accurately manage transformations. Geopandas utilizes pyproj to reproject GeoDataFrames, ensuring spatial operations and overlay analyses align correctly across different geographic projections.

Why use Python for GIS spatial analysis instead of traditional desktop GIS software?

Using Python for GIS spatial analysis provides programmatic automation for complex spatial operations like buffering and dissolve. It integrates geospatial workflows with pandas and numpy for data manipulation, enabling scalable analysis of vector data beyond traditional desktop software limits.