Description
Return its length, presence of a third entry, and the count beyond three.
A GeoJSON position is an ordered coordinate tuple. Its dimension and individual ordinates are structural information; the presence of a third value alone does not establish a usable altitude or a valid coordinate reference.
Return its length, presence of a third entry, and the count beyond three.
When to use this tool
Use Position Dimension Count when you need a coordinate-tuple shape check or explicit ordinate operation.
How to use the tool and how it works
- Enter position. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read dimensions, hasThirdOrdinate, extraOrdinateCount. Inspect hasThirdOrdinate before interpreting the associated values.
Require position with at least two numeric entries. Return its length, presence of a third entry, and the count beyond three.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| position | Position | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| dimensions | Number of supplied ordinates, including extras beyond a third value. | Required. Safe integer. |
| hasThirdOrdinate | Has Third Ordinate | Required. Boolean. |
| extraOrdinateCount | Extra Ordinate Count | Required. Safe integer. |
{
"input": {
"position": [
10,
20,
5
]
},
"output": {
"dimensions": 3,
"hasThirdOrdinate": true,
"extraOrdinateCount": 0
}
} Limitations and assumptions
- This counts dimensions without validating longitude/latitude bounds, altitude interpretation, coordinate reference, or full GeoJSON position conformance.
- 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
Validate the complete coordinate convention and geometry before geospatial use. For actual coordinate conversion, use a transformation with the source and target reference systems explicitly specified.
References
Similar or alternative tools
- Point Third Ordinate Presence Token
Return hasThird by length, the third value when present or zero placeholder, and count entries beyond three.
- Point Coordinate Dimension Agreement
Return their lengths and sameDimension for equal length.