|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattable
AbstractIdentifiedObject
DefaultPrimeMeridian
public class DefaultPrimeMeridian
A prime meridian defines the origin from which longitude values are determined.
The name initial value is "Greenwich", and that value shall be
used when the greenwich longitude value is
zero.
| Field Summary | |
|---|---|
static DefaultPrimeMeridian |
GREENWICH
The Greenwich meridian, with angular measurements in decimal degrees. |
| Fields inherited from class AbstractIdentifiedObject |
|---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from class Formattable |
|---|
SINGLE_LINE |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultPrimeMeridian(Map<String,?> properties,
double greenwichLongitude,
Unit<Angle> angularUnit)
Constructs a prime meridian from a set of properties. |
|
DefaultPrimeMeridian(PrimeMeridian meridian)
Constructs a new prime meridian with the same values than the specified one. |
|
DefaultPrimeMeridian(String name,
double greenwichLongitude)
Constructs a prime meridian from a name. |
|
DefaultPrimeMeridian(String name,
double greenwichLongitude,
Unit<Angle> angularUnit)
Constructs a prime meridian from a name. |
|
| Method Summary | |
|---|---|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this prime meridian with the specified object for equality. |
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
Unit<Angle> |
getAngularUnit()
Returns the angular unit of the Greenwich longitude. |
double |
getGreenwichLongitude()
Longitude of the prime meridian measured from the Greenwich meridian, positive eastward. |
double |
getGreenwichLongitude(Unit<Angle> 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 AbstractIdentifiedObject |
|---|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches |
| Methods inherited from class Formattable |
|---|
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultPrimeMeridian GREENWICH
| Constructor Detail |
|---|
public DefaultPrimeMeridian(PrimeMeridian meridian)
meridian - The prime meridian to copy.
public DefaultPrimeMeridian(String name,
double greenwichLongitude)
greenwichLongitude value
is assumed in decimal degrees.
name - The datum name.greenwichLongitude - The longitude value relative to the Greenwich Meridian.
public DefaultPrimeMeridian(String name,
double greenwichLongitude,
Unit<Angle> angularUnit)
name - The datum name.greenwichLongitude - The longitude value relative to the Greenwich Meridian.angularUnit - The angular unit of the longitude.
public DefaultPrimeMeridian(Map<String,?> properties,
double greenwichLongitude,
Unit<Angle> angularUnit)
properties - Set of properties. Should contains at least "name".greenwichLongitude - The longitude value relative to the Greenwich Meridian.angularUnit - The angular unit of the longitude.| Method Detail |
|---|
public double getGreenwichLongitude()
greenwichLongitude initial value is zero, and that value shall be used
when the meridian name value is "Greenwich".
getGreenwichLongitude in interface PrimeMeridianpublic double getGreenwichLongitude(Unit<Angle> targetUnit)
getGreenwichLongitude(NonSI.DEGREE_ANGLE)), regardless of the underlying
angular units of this prime meridian.
targetUnit - The unit in which to express longitude.
public Unit<Angle> getAngularUnit()
getAngularUnit in interface PrimeMeridian
public boolean equals(AbstractIdentifiedObject object,
boolean compareMetadata)
equals in class AbstractIdentifiedObjectobject - The object to compare to this.compareMetadata - true for performing a strict comparaison, or
false for comparing only properties relevant to transformations.
true if both objects are equal.public int hashCode()
equals(AbstractIdentifiedObject, false).
hashCode in class AbstractIdentifiedObjectprotected String formatWKT(Formatter formatter)
formatWKT in class Formattableformatter - The formatter to use.
Formattable.toWKT(),
Formattable.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||