- Home
- Skills
- APIs & Backend
- geojson geometry safety reviewer
Works with the AI Agents you already use
geojson geometry safety reviewer
Find GeoJSON geometry, CRS and polygon errors before they reach production.
Free
geojson geometry safety reviewer
Example session with this skill installed
Review this GeoJSON polygon for a web mapping API: {"type": "Polygon", "coordinates": [[[ -122.4, 37.7 ], [ -122.5, 37.7 ], [ -122.5, 37.8 ], [ -122.4, 37.7 ]]]}
- Read your context and instructions
- Compiled the geojson geometry safety
The provided GeoJSON has been reviewed against RFC 7946 standards. The geometry fails basic linear ring requirements due to insufficient vertices.
Verdict: FAIL
Contract Detected
- Format: GeoJSON (RFC 7946)
- CRS: EPSG:4326 (Default)
- Coordinate Order: [Longitude, Latitude]
- Geometry Type: Polygon
- Dimensions: 2D
Findings
- Severity: Critical
- Location:
coordinates[0] - Violated Rule: LinearRing must contain at least four positions.
- Impact: Map renderers and spatial databases (PostGIS) will reject this geometry as invalid.
- Minimal Correction: Add a fourth coordinate to close the triangle properly.
Geometry Checklist
| Check | Status | Notes |
|---|---|---|
| Structure | PASS | Valid JSON Polygon nesting |
| Coordinate Order | PASS | Correct [Lon, Lat] for San Francisco area |
| Ring Closure | FAIL | Start and End match, but only 3 positions provided |
| Nesting | PASS | Single exterior ring |
| Orientation | PASS | Counter-clockwise winding |
| CRS | PASS | No legacy CRS member detected |
| Z/M | N/A | No third/fourth ordinates |
| Topology | FAIL | Triangle requires 4 points (3 distinct + closure) |
Unproven Assumptions
- The source data intended to represent a simple triangle.
- The coordinate values correctly represent the intended geographic location.
Next steps
- Update the coordinate array to include the missing vertex:
[[-122.4, 37.7], [-122.5, 37.7], [-122.5, 37.8], [-122.4, 37.7]]. - Verify the geometry in a linting tool or via
ST_IsValidin PostGIS. - Test the API consumer's behavior when receiving a 3-point Polygon to ensure graceful failure.
Connects securely to your tools. The creator never sees your data.
About this skill
Review GeoJSON with a GIS-aware agent before invalid coordinates, polygons or CRS assumptions reach your database or production API.
This skill teaches your AI coding agent to review RFC 7946 GeoJSON as spatial data rather than ordinary JSON. It detects common but costly GIS mistakes such as reversed longitude/latitude, invalid or open polygon rings, incorrect Polygon vs MultiPolygon structures, CRS confusion, unsafe Z/M assumptions and geometries that look correct on a map but are not actually valid.
It is useful when building or reviewing geospatial APIs, PostGIS applications, OpenLayers integrations, imports, geometry editors and spatial validation pipelines.
What it checks
- RFC 7946 longitude/latitude order
- Polygon and MultiPolygon structure
- Ring closure and minimum vertex requirements
- Exterior rings and holes
- CRS and projection mistakes
- ST_SetSRID vs ST_Transform misuse
- Z/M dimensional assumptions
- Bounding-box semantics
- Topology risks and invalid geometry
- Unbounded or unsafe GeoJSON API payloads
The skill deliberately distinguishes closed geometry from valid geometry and never recommends silently repairing production data with ST_MakeValid.
It produces a structured PASS / PASS WITH WARNINGS / FAIL review with findings, severity, corrections, unproven assumptions and recommended test cases.
Works as a standalone skill and does not require OpenGeoForge.
Cannot prove full topological validity without database tooling like ST_IsValid. Does not transform coordinates between systems. Source CRS must be explicitly stated or it remains unresolved.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 26 days ago
- Free with an Agensi account
Permissions
No special permissions declared or detected