|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.CRSIdentifiable 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,
CRSCodeType[] codes)
A Prime meridian with 0 degrees longitude from the greenwich meridian. |
|
PrimeMeridian(Unit units,
CRSCodeType code,
String name)
A Prime meridian with 0 degrees longitude from the greenwich meridian. |
|
PrimeMeridian(Unit units,
double longitude,
CRSCodeType code)
|
|
PrimeMeridian(Unit units,
double longitude,
CRSCodeType[] codes)
|
|
PrimeMeridian(Unit units,
double longitude,
CRSCodeType[] codes,
String[] names,
String[] versions,
String[] descriptions,
String[] areasOfUse)
|
|
PrimeMeridian(Unit units,
double longitude,
CRSCodeType code,
String name,
String version,
String description,
String areaOfUse)
|
|
PrimeMeridian(Unit units,
double longitude,
CRSIdentifiable id)
|
Method Summary | |
---|---|
boolean |
equals(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. |
void |
setAngularUnit(Unit units)
|
void |
setLongitude(double longitude,
Unit units)
|
String |
toString()
|
Methods inherited from class org.deegree.crs.CRSIdentifiable |
---|
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
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, CRSIdentifiable id)
units
- Angular units of longitude, normally radians.longitude
- (in given units) normally radians.id
- to be clonedpublic PrimeMeridian(Unit units, double longitude, CRSCodeType[] codes, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
units
- Angular units of longitude, normally radians.longitude
- (in given units) normally radians.codes
- names
- versions
- descriptions
- areasOfUse
- public PrimeMeridian(Unit units, double longitude, CRSCodeType code, String name, String version, String description, String areaOfUse)
units
- Angular units of longitude.longitude
- code
- name
- version
- description
- areaOfUse
- public PrimeMeridian(Unit units, double longitude, CRSCodeType[] codes)
units
- Angular units of longitude.longitude
- codes
- public PrimeMeridian(Unit units, double longitude, CRSCodeType code)
units
- Angular units of longitude.longitude
- code
- public PrimeMeridian(Unit units, CRSCodeType[] codes)
units
- Angular units of longitude.codes
- public PrimeMeridian(Unit units, CRSCodeType code, String name)
units
- Angular units of longitude.code
- 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 void setAngularUnit(Unit units)
units
- to be usedpublic boolean equals(Object other)
equals
in class CRSIdentifiable
public String toString()
toString
in class CRSIdentifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class Object
Object.hashCode()
public void setLongitude(double longitude, Unit units)
longitude
- units
-
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |