Package org.opengis.example.referencing
Class SimpleCRS.Geographic
- Object
-
- SimpleIdentifiedObject
-
- SimpleCRS
-
- Geographic
-
- All Implemented Interfaces:
Serializable
,Identifier
,CoordinateReferenceSystem
,GeodeticCRS
,GeographicCRS
,SingleCRS
,CoordinateSystem
,EllipsoidalCS
,IdentifiedObject
,ReferenceIdentifier
,ReferenceSystem
- Enclosing class:
- SimpleCRS
public static class SimpleCRS.Geographic extends SimpleCRS implements GeographicCRS, EllipsoidalCS
AGeographicCRS
specialization ofSimpleCRS
.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class SimpleCRS
SimpleCRS.Geographic, SimpleCRS.Temporal, SimpleCRS.Vertical
-
-
Field Summary
Fields Modifier and Type Field Description static GeographicCRS
SPHERE
A spherical CRS used when the datum is unknown, as defined by EPSG:4047.static GeographicCRS
WGS84
The WGS84 CRS, as defined by EPSG:4326.-
Fields inherited from class SimpleIdentifiedObject
authority, code
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY, CODESPACE_KEY, DESCRIPTION_KEY, VERSION_KEY
-
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description Geographic(Citation authority, String name, GeodeticDatum datum, CoordinateSystemAxis... axes)
Creates a new CRS for the given name, datum and axes.
-
Method Summary
Modifier and Type Method Description boolean
equals(Object object)
Compares this CRS with the given object for equality.EllipsoidalCS
getCoordinateSystem()
Returns the coordinate system, which is represented directly bythis
implementation class since it does not distinguish CS and CRS.GeodeticDatum
getDatum()
Returns the datum.-
Methods inherited from class SimpleCRS
getAxis, getDimension
-
Methods inherited from class SimpleIdentifiedObject
getAuthority, getCode, getCodeSpace, getDomainOfValidity, getName, getScope, hashCode, toString, toWKT
-
Methods inherited from interface CoordinateSystem
getAxis, getDimension
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Methods inherited from interface Identifier
getDescription, getVersion
-
Methods inherited from interface ReferenceSystem
getDomainOfValidity, getScope
-
-
-
-
Field Detail
-
WGS84
public static final GeographicCRS WGS84
The WGS84 CRS, as defined by EPSG:4326. The axis order is (φ,λ).
-
SPHERE
public static final GeographicCRS SPHERE
A spherical CRS used when the datum is unknown, as defined by EPSG:4047. The axis order is (φ,λ).
-
-
Constructor Detail
-
Geographic
public Geographic(Citation authority, String name, GeodeticDatum datum, CoordinateSystemAxis... axes)
Creates a new CRS for the given name, datum and axes.- Parameters:
authority
- organization responsible for definition of the name, ornull
.name
- the name of the new CRS.datum
- the value to be returned bygetDatum()
.axes
- the axes to be returned bySimpleCRS.getAxis(int)
. The length of this array is the coordinate system dimension, which should be restricted to 2 or 3.
-
-
Method Detail
-
getDatum
public GeodeticDatum getDatum()
Returns the datum.- Specified by:
getDatum
in interfaceGeodeticCRS
- Specified by:
getDatum
in interfaceSingleCRS
- Returns:
- the datum.
-
getCoordinateSystem
public EllipsoidalCS getCoordinateSystem()
Returns the coordinate system, which is represented directly bythis
implementation class since it does not distinguish CS and CRS.- Specified by:
getCoordinateSystem
in interfaceCoordinateReferenceSystem
- Specified by:
getCoordinateSystem
in interfaceGeographicCRS
- Specified by:
getCoordinateSystem
in interfaceSingleCRS
- Overrides:
getCoordinateSystem
in classSimpleCRS
- Returns:
- the coordinate system.
-
-