public class IlvGeodesicCoordinateFormatter extends IlvAbstractCoordinateFormatter
N64&B0;75 E167&B0;67
.
Ellipsoid is not used in this implementation of IlvCoordinateFormatterConstructor and Description |
---|
IlvGeodesicCoordinateFormatter()
Default constructor
|
IlvGeodesicCoordinateFormatter(IlvInputStream stream)
Creates a new
IlvGeodesicCoordinateFormatter from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Overrides deep comparison equals.
|
String |
getAngleString(double angleRad)
Formats a angle.
|
double |
getLatitude()
Returns the latitude of current point.
|
String |
getLatitudeString()
Returns the latitude string.
|
double |
getLongitude()
Returns the longitude of current point.
|
String |
getLongitudeString()
Returns the longitude string.
|
boolean |
isEast()
Returns whether the point longitude is towards east (or west if false).
|
boolean |
isNorth()
Returns whether the point latitude is towards north (or south if false).
|
void |
parse(String pointString)
Parse a formatted string containing a point's coordinates in this system
|
void |
setLonLat(double longitude,
double latitude)
Sets latitude and longitude of the current point.
|
protected void |
setupFormatters()
This method is called after precision has been changed and should update
the internal number formatters, if any.
|
String |
toString()
Returns the string representation of current point in this system.
|
getDecimalFormatSymbols, getEllipsoid, getInputSeparator, getOutputSeparator, getPrecision, hashCode, setCoordinatePrecision, setEllipsoid, setOutputSeparator, setParseSeparator, setPrecision, write
public IlvGeodesicCoordinateFormatter()
public IlvGeodesicCoordinateFormatter(IlvInputStream stream) throws IlvReadFileException
IlvGeodesicCoordinateFormatter
from an
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if an error occurs while reading.public double getLatitude() throws IllegalStateException
IllegalStateException
- if coordinates were not set first on the systempublic String getLatitudeString()
public double getLongitude() throws IllegalStateException
IllegalStateException
- if coordinates were not set first on the systempublic String getLongitudeString()
public boolean isEast()
public boolean isNorth()
public void parse(String pointString) throws IllegalArgumentException
pointString
- String to parse.IllegalArgumentException
- if string format is not validpublic void setLonLat(double longitude, double latitude)
longitude
- longitude in radians.latitude
- latitude in radians.IlvCoordinateFormatter.setLonLat(double, double)
public String toString()
toString
in interface IlvCoordinateFormatter
toString
in class Object
protected void setupFormatters()
setupFormatters
in class IlvAbstractCoordinateFormatter
IlvAbstractCoordinateFormatter.setupFormatters()
public String getAngleString(double angleRad) throws UnsupportedOperationException
angleRad
- angle in radians.UnsupportedOperationException
- if the formatter does not support angles.IlvCoordinateFormatter.getAngleString(double)
public boolean equals(Object other)
equals
in class IlvAbstractCoordinateFormatter
Object.equals(java.lang.Object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.