public class IlpGeographicPosition extends Object implements IlpPosition
Example: The position of Washington is
new IlpGeographicPosition("39D11'N","76D51'W").
Glossary: latitude/longitude.
Note:
IlpGeographicPositionConverter.IlvCoordinateTransformationException is thrown in case
of incorrect latitude and longitude values. These values can be
verified prior to creating an IlpGeographicPosition by
calling the method IlvProjectionUtil.DMSToRadian,
catching exceptions of type
IlvCoordinateTransformationException and
ArrayIndexOutOfBoundsException, and performing a range
check on the resulting number.IlpGeographicPositionConverter,
IlvProjectionUtil,
IlvCoordinateTransformationException| Constructor and Description |
|---|
IlpGeographicPosition(String latitude,
String longitude)
Creates a geographic position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares this object with another object.
|
String |
getLatitude()
Returns the latitude.
|
String |
getLongitude()
Returns the longitude.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Converts the object into a human-readable format.
|
public String getLatitude()
public String getLongitude()
public boolean equals(Object other)
IlpGeographicPosition instances are considered equal if
their respective latitudes and longitudes are equal.public int hashCode()
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.