Enum Fix

All Implemented Interfaces:
Serializable, Comparable<Fix>, Constable

public enum Fix extends Enum<Fix>
Type of GPS fix (position derived from measuring external reference points). The Standard Positioning Service (SPS) can be two- or three-dimensional, or use differential GPS for increased accuracy. The Precise Positioning Service (PPS) is a military signal.

This enumeration value can be encoded in GPS Exchange Format (GPX) with the following strings: "none", "2d", "3d", "dgps" and "pps". When reading such data, Fix instances can be a property value of the features returned by the GPX reader.


Defined in the sis-xmlstore module

  • Enum Constant Details

    • NONE

      public static final Fix NONE
      GPS has no fix. Note that this is a different meaning than "the fix information is unknown".

      public static final Fix TWO_DIMENSIONAL
      Two-dimensional fix. This requires the signal of at least 3 satellites.

      public static final Fix THREE_DIMENSIONAL
      Three-dimensional fix. This requires the signal of at least 4 satellites.

      public static final Fix DIFFERENTIAL
      Differential Global Positioning Service (DGPS) used.
      See Also:

      public static final Fix PRECISE
      Precise Positioning Service (PPS) used. This is a military signal. (Note: the alternative is Standard Positioning Service – SPS).
  • Method Details

    • values

      public static Fix[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Fix valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      Illegal­Argument­Exception - if this enum type has no constant with the specified name
      Null­Pointer­Exception - if the argument is null
    • fromGPX

      public static Fix fromGPX(String name)
      Returns the enumeration value from the given GPX name, or null if none. Recognized values are "none", "2d", "3d", "dgps" and "pps", ignoring case.
      name - the GPX name (case insensitive) for which to get an enumeration value.
      the enumeration value for the given GPX name, or null if the given name was null or unrecognized.
    • toGPX

      public String toGPX()
      Returns the string representation in GPS Exchange Format (GPX). Returned value can be "none", "2d", "3d", "dgps" or "pps",
      the GPX enumeration value.