public class QualifiedCoordinates extends Coordinates
DD_MM, DD_MM_SS
Constructor and Description |
---|
QualifiedCoordinates(double latitude,
double longitude,
float altitude,
float horizontalAccuracy,
float verticalAccuracy)
Constructs a new QualifiedCoordinates object with the values specified.
|
Modifier and Type | Method and Description |
---|---|
float |
getHorizontalAccuracy()
Returns the horizontal accuracy of the location in meters (1-sigma standard
deviation).
|
float |
getVerticalAccuracy()
Returns the accuracy of the location in meters in vertical direction (orthogonal to
ellipsoid surface, 1-sigma standard deviation).
|
void |
setHorizontalAccuracy(float horizontalAccuracy)
Sets the horizontal accuracy of the location in meters (1-sigma standard
deviation).
|
void |
setVerticalAccuracy(float verticalAccuracy)
Sets the accuracy of the location in meters in vertical direction (orthogonal to
ellipsoid surface, 1-sigma standard deviation).
|
azimuthTo, convert, convert, distance, getAltitude, getLatitude, getLongitude, setAltitude, setLatitude, setLongitude
public QualifiedCoordinates(double latitude, double longitude, float altitude, float horizontalAccuracy, float verticalAccuracy) throws java.lang.IllegalArgumentException
The Float.NaN value can be used for altitude to indicate that altitude is not known.
latitude
- the latitude of the location. Valid range: [-90.0, 90.0]longitude
- the longitude of the location. Valid range: [-180.0, 180.0)altitude
- the altitude of the location in meters, defined as height above WGS84
ellipsoid. Float.NaN can be used to indicate that altitude is not known.horizontalAccuracy
- the horizontal accuracy of this location result in meters. Float.NaN can
be used to indicate that the accuracy is not known. Must be greater or
equal to 0.verticalAccuracy
- the vertical accuracy of this location result in meters. Float.NaN can
be used to indicate that the accuracy is not known. Must be greater or
equal to 0.java.lang.IllegalArgumentException
- if an input parameter is out of the valid rangepublic float getHorizontalAccuracy()
public float getVerticalAccuracy()
public void setHorizontalAccuracy(float horizontalAccuracy) throws java.lang.IllegalArgumentException
horizontalAccuracy
- the horizontal accuracy of this location result in meters. Float.NaN
means the horizontal accuracy could not be determined. Must be greater
or equal to 0.java.lang.IllegalArgumentException
- if the parameter is less than 0public void setVerticalAccuracy(float verticalAccuracy) throws java.lang.IllegalArgumentException
verticalAccuracy
- the vertical accuracy of this location result in meters. Float.NaN means
the horizontal accuracy could not be determined. Must be greater or
equal to 0.java.lang.IllegalArgumentException
- if the parameter is less than 0