|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.Info org.geotools.cs.PrimeMeridian
DefaultPrimeMeridian
.
A meridian used to take longitude measurements from.
CS_PrimeMeridian
,
Serialized FormField 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 |
public static final PrimeMeridian GREENWICH
Constructor Detail |
public PrimeMeridian(java.lang.CharSequence 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.CS_CoordinateSystemFactory.createPrimeMeridian(java.lang.String, org.opengis.cs.CS_AngularUnit, double)
Method Detail |
public double getLongitude()
DefaultPrimeMeridian.getGreenwichLongitude()
.
CS_PrimeMeridian.getLongitude()
public double getLongitude(Unit targetUnit)
getLongitude(Unit.DEGREE)
), regardless of the underlying
angular units of this prime meridian.
targetUnit
- The unit in which to express longitude.public Unit getAngularUnit()
DefaultPrimeMeridian.getAngularUnit()
.
CS_PrimeMeridian.getAngularUnit()
public boolean equals(Info object, boolean compareNames)
equals
in class Info
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.
true
if both objects are equal.public int hashCode()
equals
(Info, false)
.
hashCode
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |