operator [] abstract method
A coordinate value by the coordinate axis index
.
Returns zero when a coordinate axis is not available.
For 2D coordinates the coordinate axis indexes are:
Index | Projected | Geographic |
---|---|---|
0 | x | lon |
1 | y | lat |
2 | m | m |
For 3D coordinates the coordinate axis indexes are:
Index | Projected | Geographic |
---|---|---|
0 | x | lon |
1 | y | lat |
2 | z | elev |
3 | m | m |
Implementation
num operator [](int index);