Skip to content

Conversation

@heathdutton
Copy link

@heathdutton heathdutton commented Jan 2, 2026

Fixes #228

When drawing an AOI at low zoom levels, the polygon coordinates can collapse to nearly identical points, resulting in a degenerate polygon with zero area. The validateGeoJSONArea function was incorrectly returning false (valid) for these cases instead of true (invalid). Confused? So was I.

This one-line fix correctly rejects polygons with zero, NaN, or invalid area values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add validation for small AOI

2 participants