Module org.opengis.geoapi.example
Package org.opengis.example.referencing
Class SimpleCRS.Geographic
Object
SimpleIdentifiedObject
SimpleCRS
Geographic
- All Implemented Interfaces:
Identifier
,CoordinateReferenceSystem
,GeodeticCRS
,GeographicCRS
,SingleCRS
,CoordinateSystem
,EllipsoidalCS
,IdentifiedObject
,ReferenceIdentifier
,ReferenceSystem
- Enclosing class:
SimpleCRS
A
GeographicCRS
specialization of SimpleCRS
.- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleCRS
SimpleCRS.Geographic, SimpleCRS.Temporal, SimpleCRS.Vertical
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GeographicCRS
A spherical CRS used when the datum is unknown, as defined by EPSG:4047.static final GeographicCRS
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
ConstructorDescriptionGeographic
(Citation authority, String name, GeodeticDatum datum, CoordinateSystemAxis... axes) Creates a new CRS for the given name, datum and axes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this CRS with the given object for equality.Returns the coordinate system, which is represented directly bythis
implementation class since it does not distinguish CS and CRS.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 Details
-
WGS84
The WGS84 CRS, as defined by EPSG:4326. The axis order is (φ,λ). -
SPHERE
A spherical CRS used when the datum is unknown, as defined by EPSG:4047. The axis order is (φ,λ).
-
-
Constructor Details
-
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 Details
-
getDatum
Returns the datum.- Specified by:
getDatum
in interfaceGeodeticCRS
- Specified by:
getDatum
in interfaceSingleCRS
- Returns:
- the datum.
-
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.
-
equals
Compares this CRS with the given object for equality.
-