public class IlvGeocentricCoordinateFormater extends IlvAbstractCoordinateFormatter
X:-6,364,039.61 Y:29,416.96 Z:296,204.96
.Constructor and Description |
---|
IlvGeocentricCoordinateFormater()
Default constructor
|
IlvGeocentricCoordinateFormater(IlvInputStream stream)
Creates a new
IlvDecimalCoordinateFormatter from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Overrides deep comparison equals.
|
String |
getAngleString(double angleRad)
This method is not supported by this coordinate formatter
|
double |
getHeight()
Returns the height of the current point.
|
double |
getLatitude()
Returns the latitude of current point.
|
double |
getLongitude()
Returns the longitude of current point.
|
double |
getX()
Returns cartesian X coordinate of the current point.
|
double |
getY()
Returns cartesian Y coordinate of the current point.
|
double |
getZ()
Returns cartesian Z coordinate of the current point.
|
void |
parse(String pointString)
Parse a formatted string containing a point's coordinates in this system
|
void |
setHeight(double height)
Sets the height (from the ellipsoid) of the current point
|
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.
|
void |
setXYZ(double x,
double y,
double z)
Sets cartesian XYZ coordinates of the current point
|
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 IlvGeocentricCoordinateFormater()
public IlvGeocentricCoordinateFormater(IlvInputStream stream) throws IlvReadFileException
IlvDecimalCoordinateFormatter
from an
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if an error occurs while reading.public double getHeight() throws IllegalStateException
IllegalStateException
public double getLatitude() throws IllegalStateException
IllegalStateException
- if coordinates were not set first on the systempublic double getLongitude() throws IllegalStateException
IllegalStateException
- if coordinates were not set first on the systempublic double getX()
public double getY()
public double getZ()
public void parse(String pointString) throws IllegalArgumentException
pointString
- String to parse.IllegalArgumentException
- if string format is not validpublic void setHeight(double height)
height
- altitude of the point.public void setLonLat(double longitude, double latitude)
longitude
- longitude in radians.latitude
- latitude in radians.IlvCoordinateFormatter.setLonLat(double, double)
public void setXYZ(double x, double y, double z)
x
- x coordinate in meters.y
- y coordinate in meters.z
- z coordinate in meters.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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.