public interface ILatLon
It provides methods to get the coordinates. The coordinates may be unknown.
In this case, both lat()
and lon()
need to return a NaN value and isLatLonKnown()
needs to return false.
Whether the coordinates are immutable or not is implementation specific.
Modifier and Type | Method and Description |
---|---|
default EastNorth |
getEastNorth(Projecting projecting)
Replies the projected east/north coordinates.
|
default boolean |
isLatLonKnown()
Determines if this object has valid coordinates.
|
double |
lat()
Returns the latitude, i.e., the north-south position in degrees.
|
double |
lon()
Returns the longitude, i.e., the east-west position in degrees.
|
double lon()
isLatLonKnown()
returns falsedouble lat()
isLatLonKnown()
returns falsedefault boolean isLatLonKnown()
true
if this object has valid coordinatesdefault EastNorth getEastNorth(Projecting projecting)
The result of the last conversion may be cached. Null is returned in case this object is invalid.
projecting
- The projection to use.