|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.network.IlpGeographicPosition
public class IlpGeographicPosition
This class describes a point on the surface of the earth, identified by longitude and latitude information.
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 Summary | |
|---|---|
IlpGeographicPosition(String latitude,
String longitude)
Creates a geographic position. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares this object with another object. |
String |
getLatitude()
Returns the latitude. |
String |
getLongitude()
Returns the longitude. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpGeographicPosition(String latitude,
String longitude)
| Method Detail |
|---|
public String getLatitude()
public String getLongitude()
public boolean equals(Object other)
IlpGeographicPosition instances are considered equal if
their respective latitudes and longitudes are equal.
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||