public class DefaultPrimeMeridian extends AbstractIdentifiedObject implements PrimeMeridian
name initial value is "Greenwich", and that value shall be used when the greenwich longitude value is zero.| Modifier and Type | Field and Description |
|---|---|
static DefaultPrimeMeridian |
GREENWICH
The Greenwich meridian, with angular measurements in decimal degrees.
|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORSINGLE_LINEALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchescleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTgetAlias, getIdentifiers, getName, getRemarks, toWKTpublic static final DefaultPrimeMeridian GREENWICH
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.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 PrimeMeridianpublic 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()Copyright © 1996–2019 Geotools. All rights reserved.