org.geotools.cs
Class PrimeMeridian

java.lang.Object
  extended byorg.geotools.cs.Info
      extended byorg.geotools.cs.PrimeMeridian
All Implemented Interfaces:
org.opengis.referencing.IdentifiedObject, java.io.Serializable

Deprecated. Replaced by DefaultPrimeMeridian.

public class PrimeMeridian
extends Info

A meridian used to take longitude measurements from.

Version:
$Id: PrimeMeridian.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CS_PrimeMeridian, Serialized Form

Field Summary
static PrimeMeridian GREENWICH
          Deprecated. The Greenwich meridian, with angular measurements in degrees.
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
PrimeMeridian(java.lang.CharSequence name, Unit unit, double longitude)
          Deprecated. Creates a prime meridian, relative to Greenwich.
 
Method Summary
 boolean equals(Info object, boolean compareNames)
          Deprecated. Compare this prime meridian with the specified object for equality.
 Unit getAngularUnit()
          Deprecated. Replaced by DefaultPrimeMeridian.getAngularUnit().
 double getLongitude()
          Deprecated. Replaced by DefaultPrimeMeridian.getGreenwichLongitude().
 double getLongitude(Unit targetUnit)
          Deprecated. Returns the longitude value relative to the Greenwich Meridian, expressed in the specified units.
 int hashCode()
          Deprecated. Returns a hash value for this prime meridian.
 
Methods inherited from class org.geotools.cs.Info
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GREENWICH

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

Constructor Detail

PrimeMeridian

public PrimeMeridian(java.lang.CharSequence name,
                     Unit unit,
                     double longitude)
Deprecated. 
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.
See Also:
CS_CoordinateSystemFactory.createPrimeMeridian(java.lang.String, org.opengis.cs.CS_AngularUnit, double)
Method Detail

getLongitude

public double getLongitude()
Deprecated. Replaced by DefaultPrimeMeridian.getGreenwichLongitude().

Returns the longitude value relative to the Greenwich Meridian. The longitude is expressed in this object's angular units.

See Also:
CS_PrimeMeridian.getLongitude()

getLongitude

public double getLongitude(Unit targetUnit)
Deprecated. 
Returns the longitude value relative to the Greenwich Meridian, expressed in the specified units. This convenience method makes it easier to obtain longitude in degrees (getLongitude(Unit.DEGREE)), regardless of the underlying angular units of this prime meridian.

Parameters:
targetUnit - The unit in which to express longitude.

getAngularUnit

public Unit getAngularUnit()
Deprecated. Replaced by DefaultPrimeMeridian.getAngularUnit().

Returns the angular units.

See Also:
CS_PrimeMeridian.getAngularUnit()

equals

public boolean equals(Info object,
                      boolean compareNames)
Deprecated. 
Compare this prime meridian with the specified object for equality.

Overrides:
equals in class Info
Parameters:
object - The object to compare to this.
compareNames - true to comparare the name, alias, authority code, etc. as well, or false to compare only properties relevant to transformations.
Returns:
true if both objects are equal.

hashCode

public int hashCode()
Deprecated. 
Returns a hash value for this prime meridian. Name, alias, authority code and the like are not taken in account. In other words, two prime meridians will return the same hash value if they are equal in the sense of equals(Info, false).

Overrides:
hashCode in class Info
Returns:
The hash code value. This value doesn't need to be the same in past or future versions of this class.


Copyright © GeoTools. All Rights Reserved.