public class CotPoint
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CotPoint> |
CREATOR |
static java.lang.String |
TAG |
static double |
UNKNOWN |
static CotPoint |
ZERO
Point where latitude, longitude, and height above ellipsoid equal UNKNOWN_ALTITUDE.
|
Constructor and Description |
---|
CotPoint(double lat,
double lon,
double hae,
double ce,
double le)
Create a CoT point given all point attributes
|
CotPoint(GeoPoint gp)
Create a CoT point given a GeoPoint.
|
Modifier and Type | Method and Description |
---|---|
void |
buildXml(java.lang.Appendable b)
Build upon a StringBuilder for the XML representation of this point.
|
static java.lang.String |
decimate(GeoPoint pt)
Returns a decimated string representation of a GeoPoint that mimics the precision defined in
LocationMapComponent.
|
int |
describeContents() |
double |
getCe()
Get the circular radius error in meters
|
double |
getHae()
Get the height above ellipsoid in meters
|
double |
getLat()
Get the latitude
|
double |
getLe()
Get the linear error in meters
|
double |
getLon()
Get the longitude
|
GeoPoint |
toGeoPoint()
Construct a GeoPoint from a CotPoint.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.lang.String TAG
public static final double UNKNOWN
public static final CotPoint ZERO
public static final android.os.Parcelable.Creator<CotPoint> CREATOR
public CotPoint(double lat, double lon, double hae, double ce, double le)
lat
- latitudelon
- longitudehae
- height above ellipsoid in metersce
- circular radius error in meters (set to CotPoint.COT_CE90_UNKNOWN if unknown)le
- linear error in meters (set to CotPoint.COT_LE90_UNKNOWN if unknown)public CotPoint(GeoPoint gp)
public GeoPoint toGeoPoint()
public void buildXml(java.lang.Appendable b) throws java.io.IOException
java.io.IOException
public double getLat()
public double getLon()
public double getCe()
public double getLe()
public double getHae()
public int describeContents()
describeContents
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String decimate(GeoPoint pt)
pt
- the geopoint to decimate so that it is 7 digits of precision for the lat and lon and 4
digits of precision for altitude.public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable