|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable org.deegree.crs.components.PrimeMeridian
public class PrimeMeridian
The PrimeMeridian
class saves the longitude to the greenwich meridian.
Field Summary | |
---|---|
static PrimeMeridian |
GREENWICH
The PrimeMeridian of greenwich with epsg:8901 code and radian units. |
Constructor Summary | |
---|---|
PrimeMeridian(Unit units,
double longitude,
Identifiable id)
|
|
PrimeMeridian(Unit units,
double longitude,
java.lang.String identifier)
|
|
PrimeMeridian(Unit units,
double longitude,
java.lang.String[] identifiers)
|
|
PrimeMeridian(Unit units,
double longitude,
java.lang.String[] identifiers,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
|
|
PrimeMeridian(Unit units,
double longitude,
java.lang.String identifier,
java.lang.String name,
java.lang.String version,
java.lang.String description,
java.lang.String areaOfUse)
|
|
PrimeMeridian(Unit units,
java.lang.String[] identifiers)
A Prime meredian with 0 degrees longitude from the greenwich meridian. |
|
PrimeMeridian(Unit units,
java.lang.String identifier,
java.lang.String name)
A Prime meredian with 0 degrees longitude from the greenwich meridian. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
Unit |
getAngularUnit()
|
double |
getLongitude()
|
double |
getLongitude(Unit targetUnit)
|
double |
getLongitudeAsRadian()
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
java.lang.String |
toString()
|
Methods inherited from class org.deegree.crs.Identifiable |
---|
checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID |
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(Unit units, double longitude, Identifiable id)
units
- Angular units of longitude, normally radians.longitude
- (in given units) normally radians.id
- to be clonedpublic PrimeMeridian(Unit units, double longitude, java.lang.String[] identifiers, java.lang.String[] names, java.lang.String[] versions, java.lang.String[] descriptions, java.lang.String[] areasOfUse)
units
- Angular units of longitude, normally radians.longitude
- (in given units) normally radians.identifiers
- names
- versions
- descriptions
- areasOfUse
- public PrimeMeridian(Unit units, double longitude, java.lang.String identifier, java.lang.String name, java.lang.String version, java.lang.String description, java.lang.String areaOfUse)
units
- Angular units of longitude.longitude
- identifier
- name
- version
- description
- areaOfUse
- public PrimeMeridian(Unit units, double longitude, java.lang.String[] identifiers)
units
- Angular units of longitude.longitude
- identifiers
- public PrimeMeridian(Unit units, double longitude, java.lang.String identifier)
units
- Angular units of longitude.longitude
- identifier
- public PrimeMeridian(Unit units, java.lang.String[] identifiers)
units
- Angular units of longitude.identifiers
- public PrimeMeridian(Unit units, java.lang.String identifier, java.lang.String name)
units
- Angular units of longitude.identifier
- name
- human readable nameMethod Detail |
---|
public double getLongitude()
public double getLongitude(Unit targetUnit)
targetUnit
- The unit in which to express longitude.
getLongitude(Unit.DEGREE)
),
no matter the underlying angular unit of this prime meridian.public double getLongitudeAsRadian()
public Unit getAngularUnit()
public boolean equals(java.lang.Object other)
equals
in class Identifiable
public java.lang.String toString()
toString
in class Identifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class java.lang.Object
Object.hashCode()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org