# polygon-area-perimeter

measure the area and perimeter of GeoJSON polygons in square metres and metres

- **Space:** geospatial-public (https://github.com/Tech-Realm/space-geospatial-public/tree/main/polygon-area-perimeter)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib, gdal-ogr; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use geospatial-public/polygon-area-perimeter` or MCP `get_pack geospatial-public/polygon-area-perimeter`
- **Files:** CHANGELOG.md, code/area.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/sq.geojson, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Measure the area and perimeter of GeoJSON polygons in square metres and metres.

## Steps

1. Export the plot/zone as GeoJSON (WGS84).
2. Run area.py.
3. 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)

1. `python-stdlib`: `code/area.py` (no install).
2. `gdal-ogr` (free): GDAL/OGR for format conversion and reprojection at scale (brew install gdal)



---

Canonical URL: https://logicpacks.io/packs/geospatial-public/polygon-area-perimeter

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
