Packs / geospatial-public
polygon-area-perimeter
measure the area and perimeter of GeoJSON polygons in square metres and metres
Install
logicpacks pack use geospatial-public/polygon-area-perimeterget_pack geospatial-public/polygon-area-perimeterThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlibgdal-ogr - Checks: 1 in
outcome/checks.yaml - Code:
area.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Measure the area and perimeter of GeoJSON polygons in square metres and metres.
Steps
- Export the plot/zone as GeoJSON (WGS84).
- Run area.py.
- For legal/survey areas use a projected CRS and surveyor data instead.
Edge cases
- Self-intersecting polygons give wrong areas; fix geometry first.
- Large polygons (country-size): use an ellipsoidal library (pyproj Geod).
Don'ts
- Don't quote these numbers as cadastral survey figures.
Routes (free first)
python-stdlib:code/area.py(no install).gdal-ogr(free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)