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 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

      default String toString(ILatLon ll, String separator)
      Convert the coordinate to string: latitude + separator + longitude
      Parameters:
      ll - the coordinate
      separator - the separator
      Returns:
      formatted coordinate