deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.cs
Class PrimeMeridian

java.lang.Object
  extended by org.deegree.model.csct.cs.Info
      extended by org.deegree.model.csct.cs.PrimeMeridian
All Implemented Interfaces:
Serializable

public class PrimeMeridian
extends Info

A meridian used to take longitude measurements from.

Version:
1.00, $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux, last edited by: $Author: bezema $
See Also:
"org.opengis.cs.CS_PrimeMeridian", Serialized Form

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

GREENWICH

public static final PrimeMeridian GREENWICH
The Greenwich meridian, with angular measures in degrees.

Constructor Detail

PrimeMeridian

public PrimeMeridian(String name,
                     Unit unit,
                     double longitude)
Creates a prime meridian, relative to Greenwich.

Parameters:
name - Name to give new object.
unit - Angular units of longitude.
longitude - Longitude of prime meridian in supplied angular units East of Greenwich.

PrimeMeridian

PrimeMeridian(Map properties,
              Unit unit,
              double longitude)
Creates a prime meridian, relative to Greenwich.

Parameters:
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

getLongitude

public double getLongitude()
Returns the longitude value relative to the Greenwich Meridian. The longitude is expressed in this objects angular units.

Returns:
the longitude value relative to the Greenwich Meridian. The longitude is expressed in this objects angular units.
See Also:
"org.opengis.cs.CS_PrimeMeridian#getLongitude()"

getLongitude

public double getLongitude(Unit targetUnit)
Returns the longitude value relative to the Greenwich Meridian, expressed in the specified units. This convenience method make easier to obtains longitude in degrees (getLongitude(Unit.DEGREE)), no matter the underlying angular units of this prime meridian.

Parameters:
targetUnit - The unit in which to express longitude.
Returns:
the longitude value relative to the Greenwich Meridian, expressed in the specified units. This convenience method make easier to obtains longitude in degrees (getLongitude(Unit.DEGREE)), no matter the underlying angular units of this prime meridian.

getAngularUnit

public Unit getAngularUnit()
Returns the angular units.

Returns:
the angular units.
See Also:
"org.opengis.cs.CS_PrimeMeridian#getAngularUnit()"

hashCode

public int hashCode()
Returns a hash value for this prime meridian.

Overrides:
hashCode in class Info
Returns:
a hash value for this prime meridian.

equals

public boolean equals(Object object)
Compares the specified object with this prime meridian for equality.

Overrides:
equals in class Info
Returns:

addString

String addString(StringBuffer buffer)
Fill the part inside "[...]". Used for formatting Well Know Text (WKT).

Parameters:
buffer -
Returns:

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net