Package mil.nga.crs.geo
Enum PrimeMeridians
- java.lang.Object
-
- java.lang.Enum<PrimeMeridians>
-
- mil.nga.crs.geo.PrimeMeridians
-
- All Implemented Interfaces:
Serializable
,Comparable<PrimeMeridians>
public enum PrimeMeridians extends Enum<PrimeMeridians>
Common Prime Meridians- Since:
- 1.1.0
- Author:
- osbornb
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrimeMeridians
fromName(String name)
Get the prime meridians type from the nameString
getName()
Get the namedouble
getOffsetFromGreenwich()
Get the offset from greenwich in radiansdouble
getOffsetFromGreenwichDegrees()
Get the offset from greenwich in degreesstatic PrimeMeridians
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrimeMeridians[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREENWICH
public static final PrimeMeridians GREENWICH
Greenwich
-
LISBON
public static final PrimeMeridians LISBON
Lisbon
-
PARIS
public static final PrimeMeridians PARIS
Paris
-
BOGOTA
public static final PrimeMeridians BOGOTA
Bogota
-
MADRID
public static final PrimeMeridians MADRID
Madrid
-
ROME
public static final PrimeMeridians ROME
Rome
-
BERN
public static final PrimeMeridians BERN
Bern
-
JAKARTA
public static final PrimeMeridians JAKARTA
Jakarta
-
FERRO
public static final PrimeMeridians FERRO
Ferro
-
BRUSSELS
public static final PrimeMeridians BRUSSELS
Brussels
-
STOCKHOLM
public static final PrimeMeridians STOCKHOLM
Stockholm
-
ATHENS
public static final PrimeMeridians ATHENS
Athens
-
OSLO
public static final PrimeMeridians OSLO
Oslo
-
-
Method Detail
-
values
public static PrimeMeridians[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrimeMeridians c : PrimeMeridians.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimeMeridians valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
Get the name- Returns:
- name
-
getOffsetFromGreenwich
public double getOffsetFromGreenwich()
Get the offset from greenwich in radians- Returns:
- offset longitude in radians
-
getOffsetFromGreenwichDegrees
public double getOffsetFromGreenwichDegrees()
Get the offset from greenwich in degrees- Returns:
- offset longitude in degrees
-
fromName
public static PrimeMeridians fromName(String name)
Get the prime meridians type from the name- Parameters:
name
- prime meridian name- Returns:
- prime meridians type
-
-