Description
Keep the first two, or at most the first three when keepAltitude, and report removed count.
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.
Keep the first two, or at most the first three when keepAltitude, and report removed count.
When to use this tool
Use Point Coordinate Extra Ordinate Policy when you need a coordinate-tuple shape check or explicit ordinate operation.
How to use the tool and how it works
- Enter coordinates, keepAltitude. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read coordinates, removed. Use the output convention below.
Require at least two coordinates. Keep the first two, or at most the first three when keepAltitude, and report removed count.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| coordinates | Coordinates | Required. Array of finite number; maximum items 256. |
| keepAltitude | Keep Altitude | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| coordinates | Coordinates | Required. Array of finite number; maximum items 256. |
| removed | Removed | Required. Safe integer. |
{
"input": {
"coordinates": [
10,
20,
30,
40
],
"keepAltitude": true
},
"output": {
"coordinates": [
10,
20,
30
],
"removed": 1
}
} Limitations and assumptions
- Keeping a third entry does not establish a valid altitude, unit, or datum; no axis conversion, coordinate-range check, or full GeoJSON validation is performed.
- 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
- Coordinate Position Ordinate Projection
Return values at the requested indexes in order.
- Point Coordinate Dimension Agreement
Return their lengths and sameDimension for equal length.