Interface ICoordinateFormat
- All Known Implementing Classes:
AbstractCoordinateFormat,DecimalDegreesCoordinateFormat,DMSCoordinateFormat,NauticalCoordinateFormat,ProjectedCoordinateFormat
public interface ICoordinateFormat
A class that converts lat/lon coordinates to string.
- Since:
- 12735
-
Method Summary
Modifier and TypeMethodDescriptionGet display name for this coordinate formatgetId()Get unique id for this coordinate format.latToString(ILatLon ll) Convert latitude to string.lonToString(ILatLon ll) Convert longitude to string.default StringConvert the coordinate to string: latitude + separator + longitude
-
Method Details
-
getId
Get unique id for this coordinate format.- Returns:
- unique id
-
getDisplayName
Get display name for this coordinate format- Returns:
- display name (localized)
-
latToString
Convert latitude to string.- Parameters:
ll- the coordinate- Returns:
- formatted latitude
-
lonToString
Convert longitude to string.- Parameters:
ll- the coordinate- Returns:
- formatted longitude
-
toString
Convert the coordinate to string: latitude + separator + longitude- Parameters:
ll- the coordinateseparator- the separator- Returns:
- formatted coordinate
-