# Load and Parse Plate Boundary Data

> Load plate boundary GeoJSON and create a GeoDataFrame with proper geometry parsing. Verify column names (PlateA, PlateB) match the dataset structure. Use this skill to prepare boundary data before filtering for Pacific plate relevance.

- Skill: `cxcscmu/load-and-parse-plate-boundary-data` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/load-and-parse-plate-boundary-data`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/load-and-parse-plate-boundary-data/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/load-and-parse-plate-boundary-data

---


```python
def load_boundary_data(filepath):
    """
    Load plate boundary data and parse geometries correctly.
    
    Args:
        filepath: Path to PB2002_boundaries.json
        
    Returns:
        GeoDataFrame with boundary geometries and plate identifiers
    """
    boundaries = gpd.read_file(filepath)
    
    # Verify expected columns exist
    if 'PlateA' not in boundaries.columns or 'PlateB' not in boundaries.columns:
        print("Available columns:", boundaries.columns.tolist())
        raise ValueError("PlateA and PlateB columns not found")
    
    # Ensure geometry is valid
    boundaries = boundaries[boundaries.geometry.is_valid]
    boundaries = boundaries.reset_index(drop=True)
    
    return boundaries
```
