Package org.locationtech.proj4j.geoapi
Class ProjectedCRSWrapper
- java.lang.Object
-
- org.locationtech.proj4j.geoapi.Wrapper
-
- org.locationtech.proj4j.geoapi.AbstractCRS
-
- org.locationtech.proj4j.geoapi.ProjectedCRSWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,org.opengis.metadata.Identifier
,org.opengis.referencing.crs.CoordinateReferenceSystem
,org.opengis.referencing.crs.GeneralDerivedCRS
,org.opengis.referencing.crs.ProjectedCRS
,org.opengis.referencing.crs.SingleCRS
,org.opengis.referencing.cs.AffineCS
,org.opengis.referencing.cs.CartesianCS
,org.opengis.referencing.cs.CoordinateSystem
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.ReferenceIdentifier
,org.opengis.referencing.ReferenceSystem
final class ProjectedCRSWrapper extends AbstractCRS implements org.opengis.referencing.cs.CartesianCS, org.opengis.referencing.crs.ProjectedCRS
Wraps a PROJ4J implementation behind the equivalent GeoAPI interface.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opengis.referencing.operation.Projection
conversionFromBase
The conversion from the base CRS, created when first requested.-
Fields inherited from class org.locationtech.proj4j.geoapi.AbstractCRS
impl, is3D
-
Fields inherited from class org.locationtech.proj4j.geoapi.Wrapper
BIDIMENSIONAL, TRIDIMENSIONAL
-
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
-
Constructor Summary
Constructors Constructor Description ProjectedCRSWrapper(CoordinateReferenceSystem impl, boolean is3D)
Creates a new wrapper for the given PROJ4J implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Axis[]
axesForAllDirections()
ReturnsAxis.GEOGRAPHIC
andAxis.PROJECTED
arrays, depending on whether this CRS is geographic or projected.org.opengis.referencing.crs.GeographicCRS
getBaseCRS()
{@return the base CRS of this projected CRS}.org.opengis.referencing.operation.Projection
getConversionFromBase()
{@return the conversion from the base CRS to this projected CRS}.org.opengis.referencing.cs.CartesianCS
getCoordinateSystem()
{@return the coordinate system, which is implemented by the same class for convenience}.-
Methods inherited from class org.locationtech.proj4j.geoapi.AbstractCRS
clearAxisCache, getAxis, getCode, getDatum, getDimension, implementation, wrap
-
Methods inherited from class org.locationtech.proj4j.geoapi.Wrapper
equals, getAlias, getAuthority, getCodeSpace, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toString, toWKT
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ProjectedCRSWrapper
ProjectedCRSWrapper(CoordinateReferenceSystem impl, boolean is3D)
Creates a new wrapper for the given PROJ4J implementation.
-
-
Method Detail
-
getCoordinateSystem
public org.opengis.referencing.cs.CartesianCS getCoordinateSystem()
{@return the coordinate system, which is implemented by the same class for convenience}.- Specified by:
getCoordinateSystem
in interfaceorg.opengis.referencing.crs.CoordinateReferenceSystem
- Specified by:
getCoordinateSystem
in interfaceorg.opengis.referencing.crs.ProjectedCRS
- Specified by:
getCoordinateSystem
in interfaceorg.opengis.referencing.crs.SingleCRS
- Overrides:
getCoordinateSystem
in classAbstractCRS
-
axesForAllDirections
final Axis[] axesForAllDirections()
Description copied from class:AbstractCRS
ReturnsAxis.GEOGRAPHIC
andAxis.PROJECTED
arrays, depending on whether this CRS is geographic or projected. The returned array is not cloned, the caller shall not modify it.- Specified by:
axesForAllDirections
in classAbstractCRS
-
getBaseCRS
public org.opengis.referencing.crs.GeographicCRS getBaseCRS()
{@return the base CRS of this projected CRS}.- Specified by:
getBaseCRS
in interfaceorg.opengis.referencing.crs.GeneralDerivedCRS
- Specified by:
getBaseCRS
in interfaceorg.opengis.referencing.crs.ProjectedCRS
-
getConversionFromBase
public org.opengis.referencing.operation.Projection getConversionFromBase()
{@return the conversion from the base CRS to this projected CRS}.- Specified by:
getConversionFromBase
in interfaceorg.opengis.referencing.crs.GeneralDerivedCRS
- Specified by:
getConversionFromBase
in interfaceorg.opengis.referencing.crs.ProjectedCRS
-
-