|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.wkt.Formattable org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.datum.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 degrees. |
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject |
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
DefaultPrimeMeridian(java.util.Map properties,
double greenwichLongitude,
javax.units.Unit angularUnit)
Constructs a prime meridian from a set of properties. |
|
DefaultPrimeMeridian(org.opengis.referencing.datum.PrimeMeridian meridian)
Constructs a new prime meridian with the same values than the specified one. |
|
DefaultPrimeMeridian(java.lang.String name,
double greenwichLongitude)
Constructs a prime meridian from a name. |
|
DefaultPrimeMeridian(java.lang.String name,
double greenwichLongitude,
javax.units.Unit 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 java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
javax.units.Unit |
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(javax.units.Unit 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 org.geotools.referencing.AbstractIdentifiedObject |
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Field Detail |
public static final DefaultPrimeMeridian GREENWICH
Constructor Detail |
public DefaultPrimeMeridian(org.opengis.referencing.datum.PrimeMeridian meridian)
public DefaultPrimeMeridian(java.lang.String name, double greenwichLongitude)
name
- The datum name.greenwichLongitude
- The longitude value relative to the Greenwich Meridian.public DefaultPrimeMeridian(java.lang.String name, double greenwichLongitude, javax.units.Unit angularUnit)
name
- The datum name.greenwichLongitude
- The longitude value relative to the Greenwich Meridian.angularUnit
- The angular unit of the longitude.public DefaultPrimeMeridian(java.util.Map properties, double greenwichLongitude, javax.units.Unit 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()
getGreenwichLongitude
in interface org.opengis.referencing.datum.PrimeMeridian
public double getGreenwichLongitude(javax.units.Unit targetUnit)
targetUnit
- The unit in which to express longitude.public javax.units.Unit getAngularUnit()
getAngularUnit
in interface org.opengis.referencing.datum.PrimeMeridian
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractIdentifiedObject
object
- The object to compare to .compareMetadata
- for performing a strict comparaison, or
for comparing only properties relevant to transformations.
public int hashCode()
equals
(AbstractIdentifiedObject, false)
.
hashCode
in class AbstractIdentifiedObject
protected java.lang.String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.
Formattable.toWKT()
,
Formattable.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |