| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.datum.DefaultPrimeMeridian
DefaultPrimeMeridian | public class DefaultPrimeMeridian extends AbstractIdentifiedObject implements PrimeMeridian(Code) | | A prime meridian defines the origin from which longitude values are determined.
The
DefaultPrimeMeridian.getName name initial value is "Greenwich", and that value shall be
used when the
value is
zero.
version: $Id: DefaultPrimeMeridian.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux since: 2.1 |
Constructor Summary | |
public | DefaultPrimeMeridian(PrimeMeridian meridian) Constructs a new prime meridian with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultPrimeMeridian(String name, double greenwichLongitude) Constructs a prime meridian from a name. | public | DefaultPrimeMeridian(String name, double greenwichLongitude, Unit angularUnit) Constructs a prime meridian from a name. | public | DefaultPrimeMeridian(Map properties, double greenwichLongitude, Unit angularUnit) Constructs a prime meridian from a set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this prime meridian with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public Unit | getAngularUnit() Returns the angular unit of the
. | public double | getGreenwichLongitude() Longitude of the prime meridian measured from the Greenwich meridian, positive eastward. | public double | getGreenwichLongitude(Unit targetUnit) Returns the longitude value relative to the Greenwich Meridian, expressed in the specified
units. | public int | hashCode() Returns a hash value for this prime meridian. |
GREENWICH | final public static DefaultPrimeMeridian GREENWICH(Code) | | The Greenwich meridian, with angular measurements in decimal degrees.
|
DefaultPrimeMeridian | public DefaultPrimeMeridian(PrimeMeridian meridian)(Code) | | Constructs a new prime meridian with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 |
DefaultPrimeMeridian | public DefaultPrimeMeridian(String name, double greenwichLongitude)(Code) | | Constructs a prime meridian from a name. The
greenwichLongitude value
is assumed in
.
Parameters: name - The datum name. Parameters: greenwichLongitude - The longitude value relative to the Greenwich Meridian. |
DefaultPrimeMeridian | public DefaultPrimeMeridian(String name, double greenwichLongitude, Unit angularUnit)(Code) | | Constructs a prime meridian from a name.
Parameters: name - The datum name. Parameters: greenwichLongitude - The longitude value relative to the Greenwich Meridian. Parameters: angularUnit - The angular unit of the longitude. |
DefaultPrimeMeridian | public DefaultPrimeMeridian(Map properties, double greenwichLongitude, Unit angularUnit)(Code) | | Constructs a prime meridian from a set of properties. The properties map is given
unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: greenwichLongitude - The longitude value relative to the Greenwich Meridian. Parameters: angularUnit - The angular unit of the longitude. |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this prime meridian with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
getAngularUnit | public Unit getAngularUnit()(Code) | | Returns the angular unit of the
.
|
getGreenwichLongitude | public double getGreenwichLongitude()(Code) | | Longitude of the prime meridian measured from the Greenwich meridian, positive eastward.
The
greenwichLongitude initial value is zero, and that value shall be used
when the
value is "Greenwich".
The prime meridian Greenwich longitude, in . |
getGreenwichLongitude | public double getGreenwichLongitude(Unit targetUnit)(Code) | | Returns the longitude value relative to the Greenwich Meridian, expressed in the specified
units. This convenience method makes it easier to obtain longitude in decimal degrees
(
getGreenwichLongitude(NonSI.DEGREE_ANGLE) ), regardless of the underlying
angular units of this prime meridian.
Parameters: targetUnit - The unit in which to express longitude. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this prime meridian.
,
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
DefaultPrimeMeridian.equals equals (AbstractIdentifiedObject, false) .
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|