|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.cs.Info
org.deegree.model.csct.cs.PrimeMeridian
public class PrimeMeridian
A meridian used to take longitude measurements from.
Field Summary | |
---|---|
static PrimeMeridian |
GREENWICH
The Greenwich meridian, with angular measures in degrees. |
Fields inherited from class org.deegree.model.csct.cs.Info |
---|
pool |
Constructor Summary | |
---|---|
PrimeMeridian(Map properties,
Unit unit,
double longitude)
Creates a prime meridian, relative to Greenwich. |
|
PrimeMeridian(String name,
Unit unit,
double longitude)
Creates a prime meridian, relative to Greenwich. |
Method Summary | |
---|---|
(package private) String |
addString(StringBuffer buffer)
Fill the part inside "[...]". |
boolean |
equals(Object object)
Compares the specified object with this prime meridian for equality. |
Unit |
getAngularUnit()
Returns the angular units. |
double |
getLongitude()
Returns the longitude value relative to the Greenwich Meridian. |
double |
getLongitude(Unit targetUnit)
Returns the longitude value relative to the Greenwich Meridian, expressed in the specified units. |
int |
hashCode()
Returns a hash value for this prime meridian. |
Methods inherited from class org.deegree.model.csct.cs.Info |
---|
addString, addUnit, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, readResolve, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PrimeMeridian GREENWICH
Constructor Detail |
---|
public PrimeMeridian(String name, Unit unit, double longitude)
name
- Name to give new object.unit
- Angular units of longitude.longitude
- Longitude of prime meridian in supplied angular units East of Greenwich.PrimeMeridian(Map properties, Unit unit, double longitude)
properties
- The set of properties (see Info
).unit
- Angular units of longitude.longitude
- Longitude of prime meridian in supplied angular units East of Greenwich.Method Detail |
---|
public double getLongitude()
public double getLongitude(Unit targetUnit)
getLongitude(Unit.DEGREE)
),
no matter the underlying angular units of this prime meridian.
targetUnit
- The unit in which to express longitude.
getLongitude(Unit.DEGREE)
),
no matter the underlying angular units of this prime meridian.public Unit getAngularUnit()
public int hashCode()
hashCode
in class Info
public boolean equals(Object object)
equals
in class Info
String addString(StringBuffer buffer)
buffer
-
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net