Description
Return max(0, 4-positions) and meetsMinimum when count is at least four.
A polygon ring is a closed sequence of coordinate positions. Closure, minimum position count, distinct vertices, winding, and self-intersection are separate properties, so a check of one cannot stand in for complete polygon validation.
Return max(0, 4-positions) and meetsMinimum when count is at least four.
When to use this tool
Use Polygon Ring Minimum Position Budget when you need a specific ring-shape or closure diagnostic.
How to use the tool and how it works
- Enter positions. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read missing, meetsMinimum. Inspect meetsMinimum before interpreting the associated values.
Require nonnegative integer positions. Return max(0, 4-positions) and meetsMinimum when count is at least four.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| positions | Positions | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| missing | Missing | Required. Safe integer. |
| meetsMinimum | Meets Minimum | Required. Boolean. |
{
"input": {
"positions": 3
},
"output": {
"missing": 1,
"meetsMinimum": false
}
} Limitations and assumptions
- Count alone does not establish closure, distinct vertices, coordinate shape, winding, nonzero area, or a valid GeoJSON polygon.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use a complete GeoJSON and polygon validator for publication or geometric operations. Check coordinate convention, distinctness, winding, self-intersection, and hole relationships as appropriate.
References
Similar or alternative tools
- Polygon Ring Closure Ordinate Consistency
Compare the first two ordinates for xyClosed and all ordinates and dimensions for fullyClosed.
- GeoJSON: Polygon Ring Start End Pair
Return first and last positions and exact structural equality as closed inside result.