AGENT SKILL

skill-036

Create interactive visualizations of geographic data using GeoPandas and Folium. Use when presenting geospatial information in a visually appealing manner.

License 许可
MIT
最近更新
2026-06-04
Stars
★ 8
Forks
2

01 前言 Front Matter

name
skill-036
license
MIT
description
Create interactive visualizations of geographic data using GeoPandas and Folium. Use when presenting geospatial information in a visually appealing manner.

03 SKILL.md 正文

Geospatial Visualization with GeoPandas and Folium

Overview

Visualizing geospatial data effectively can help communicate complex geographic information clearly and engagingly. This guide covers the use of GeoPandas and Folium to create interactive maps.

Key Concepts

Why Visualize Geospatial Data?

  • Clarity: Helps users understand spatial relationships and distributions.
  • Interactivity: Engages users, allowing exploration of the data at their own pace.

Tools Used

  • GeoPandas: For handling geospatial data in Python.
  • Folium: For creating interactive maps using Leaflet.js.

Loading and Preparing Data

Load Geospatial Data

import geopandas as gpd

# Load geospatial dataset

gdf = gpd.read_file('geodata.geojson')

Data Preparation

Ensure your data is clean and ready for visualization.

# Check for missing values
print(gdf.isnull().sum())

# Drop any rows with missing geometries

gdf = gdf.dropna(subset=['geometry'])

Creating an Interactive Map

Initialize the Map

import folium

# Create a base map

m = folium.Map(location=[0, 0], zoom_start=2)

Adding GeoData to the Map

# Add geospatial data to the map
folium.GeoJson(gdf).add_to(m)

Displaying the Map

# Display the map in a Jupyter Notebook
m

Enhancing the Map

Adding Markers

You can add additional markers for specific data points.

for _, row in gdf.iterrows():
    folium.Marker([row['geometry'].y, row['geometry'].x],
                  popup=row['info']).add_to(m)

Saving the Map

# Save the map to an HTML file

m.save('interactive_map.html')

Conclusion

With GeoPandas and Folium, you can create informative and visually appealing interactive maps that can enhance the understanding of geographic data and its implications.

04 同仓库更多 Skills

legendtkl
legendtkl/agentic-skill-router

foo

A test skill named foo

★ 8
legendtkl
legendtkl/agentic-skill-router

bar

飞书 — bar with quoted Chinese

★ 8
legendtkl
legendtkl/agentic-skill-router

agentic-skill-router

First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-trim

Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-transcode

Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-thumbnail

Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.

★ 8