def load_plate_data(filepath):
"""
Load plate polygon data and validate geometries.
Args:
filepath: Path to PB2002_plates.json
Returns:
GeoDataFrame with plate polygons and identifiers
"""
plates = gpd.read_file(filepath)
# Print available columns to identify plate name column
print("Plate data columns:", plates.columns.tolist())
print("Sample plate names:", plates.head())
# Ensure geometry is valid
plates = plates[plates.geometry.is_valid]
plates = plates.reset_index(drop=True)
return plates
Load and Parse Plate Polygon Data
Load plate polygon GeoJSON and parse geometries correctly. Verify the column name used for plate identifiers (e.g., 'PlateName' or similar). Use this skill to prepare plate polygon data for containment checks.
Load and Parse Plate Polygon Data by cxcscmu · a33c3a6
npx get-skill add cxcscmu/load-and-parse-plate-polygon-data File contents
---name: load-and-parse-plate-polygon-datadescription: Load plate polygon GeoJSON and parse geometries correctly. Verify the column name used for plate identifiers (e.g., 'PlateName' or similar). Use this skill to prepare plate polygon data for containment checks.metadata: source: https://skillmd.com/skills/cxcscmu/load-and-parse-plate-polygon-data---```pythondef load_plate_data(filepath): """ Load plate polygon data and validate geometries. Args: filepath: Path to PB2002_plates.json Returns: GeoDataFrame with plate polygons and identifiers """ plates = gpd.read_file(filepath) # Print available columns to identify plate name column print("Plate data columns:", plates.columns.tolist()) print("Sample plate names:", plates.head()) # Ensure geometry is valid plates = plates[plates.geometry.is_valid] plates = plates.reset_index(drop=True) return plates```
cxcscmu/SkillLearnBench commit a33c3a6ce5
Frequently asked questions
Run npx get-skill add cxcscmu/load-and-parse-plate-polygon-data in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Load plate polygon GeoJSON and parse geometries correctly. Verify the column name used for plate identifiers (e.g., 'PlateName' or similar). Use this skill to prepare plate polygon data for containment checks. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cxcscmu (@cxcscmu) published this skill. Their other Agent Skills are listed on their SkillMD profile.