# Geojson Boundary Simplification

> Simplifies complex GeoJSON polygon boundaries using the Douglas-Peucker algorithm while preserving topology. Use when optimizing large geographic boundary files

- Skill: `bishnucd/geojson-boundary-simplification` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/geojson-boundary-simplification`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/geojson-boundary-simplification/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/bishnucd/geojson-boundary-simplification

---

---
name: geojson-boundary-simplification
description: Simplifies complex GeoJSON polygon boundaries using the Douglas-Peucker algorithm while preserving topology. Use when optimizing large geographic boundary files for web mapping.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://mapshaper.org/"
---
# Geojson Boundary Simplification

## Overview
High-resolution geographic boundaries contain millions of vertices, causing massive file sizes and sluggish web rendering. Topological simplification reduces polygon coordinates by up to 90%.

## Operational Workflow

1. **Ingest high-resolution GeoJSON FeatureCollections containing boundary polygons.**:
   - Ingest high-resolution GeoJSON FeatureCollections containing boundary polygons.

2. **Convert GeoJSON to TopoJSON to maintain shared arc boundaries and prevent sliver gaps.**:
   - Convert GeoJSON to TopoJSON to maintain shared arc boundaries and prevent sliver gaps.

3. **Apply Douglas-Peucker line simplification with calibrated angular tolerance thresholds.**:
   - Apply Douglas-Peucker line simplification with calibrated angular tolerance thresholds.

4. **Export lightweight simplified GeoJSON and verify that boundary containment tests remain accurate.**:
   - Export lightweight simplified GeoJSON and verify that boundary containment tests remain accurate.

## Recommended Tools & Environments
- GeoJSON
- Turf.js
- TopoJSON
- Douglas-Peucker

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

