public enum Fix extends Enum<Fix>
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 and Description |
---|
DIFFERENTIAL
Differential Global Positioning Service (DGPS) used.
|
NONE
GPS has no fix.
|
PRECISE
Precise Positioning Service (PPS) used.
|
THREE_DIMENSIONAL
Three-dimensional fix.
|
TWO_DIMENSIONAL
Two-dimensional fix.
|
Modifier and Type | Method and Description |
---|---|
static Fix |
fromGPX(String name)
Returns the enumeration value from the given GPX name, or
null if none. |
String |
toGPX()
Returns the string representation in GPS Exchange Format (GPX).
|
static Fix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fix NONE
public static final Fix TWO_DIMENSIONAL
public static final Fix THREE_DIMENSIONAL
public static final Fix DIFFERENTIAL
public static final Fix PRECISE
public static Fix[] values()
for (Fix c : Fix.values()) System.out.println(c);
public static Fix valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Fix fromGPX(String name)
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.null
if the given name
was null
or unrecognized.public String toGPX()
"none"
, "2d"
, "3d"
, "dgps"
or "pps"
,Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.