Package org.locationtech.proj4j.geoapi
Class TransformWrapper3D
- java.lang.Object
-
- org.locationtech.proj4j.geoapi.Wrapper
-
- org.locationtech.proj4j.geoapi.TransformWrapper
-
- org.locationtech.proj4j.geoapi.TransformWrapper3D
-
- All Implemented Interfaces:
java.io.Serializable
,org.opengis.metadata.Identifier
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.operation.CoordinateOperation
,org.opengis.referencing.operation.MathTransform
,org.opengis.referencing.ReferenceIdentifier
- Direct Known Subclasses:
ProjectionWrapper3D
class TransformWrapper3D extends TransformWrapper
Wraps a PROJ4J transform behind the equivalent GeoAPI interface for the three-dimensional case. The exact type of the operation (conversion, transformation or concatenated) is unknown.
-
-
Field Summary
Fields Modifier and Type Field Description private TransformWrapper3D
inverse
The inverse of this wrapper, computed when first requested.-
Fields inherited from class org.locationtech.proj4j.geoapi.TransformWrapper
impl
-
Fields inherited from class org.locationtech.proj4j.geoapi.Wrapper
BIDIMENSIONAL, TRIDIMENSIONAL
-
Fields inherited from interface org.opengis.referencing.operation.CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description TransformWrapper3D(CoordinateTransform impl)
Creates a new wrapper for the given PROJ4J implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSourceDimensions()
{@return the number of dimensions of input coordinates, which is 3}.int
getTargetDimensions()
{@return the number of dimensions of output coordinates, which is 3}.org.opengis.referencing.operation.MathTransform
inverse()
{@return the inverse of this coordinate operation}.void
transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Transforms coordinate tuples in the given arrays in double precision.void
transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Transforms coordinate tuples in the given arrays, with target coordinates converted to single precision.void
transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Transforms coordinate tuples in the given arrays, with source coordinates converted from single precision.void
transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Transforms coordinate tuples in the given arrays in single precision.-
Methods inherited from class org.locationtech.proj4j.geoapi.TransformWrapper
cannotTransform, checkNumPts, derivative, getCode, getCoordinateOperationAccuracy, getMathTransform, getOperationVersion, getSourceCRS, getTargetCRS, implementation, isIdentity, transform, 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
-
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperation
getDomainOfValidity, getScope
-
-
-
-
Field Detail
-
inverse
private transient TransformWrapper3D inverse
The inverse of this wrapper, computed when first requested.- See Also:
inverse()
-
-
Constructor Detail
-
TransformWrapper3D
TransformWrapper3D(CoordinateTransform impl)
Creates a new wrapper for the given PROJ4J implementation.
-
-
Method Detail
-
getSourceDimensions
public final int getSourceDimensions()
{@return the number of dimensions of input coordinates, which is 3}.
-
getTargetDimensions
public final int getTargetDimensions()
{@return the number of dimensions of output coordinates, which is 3}.
-
transform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException
Transforms coordinate tuples in the given arrays in double precision. This is the most frequently used method.- Throws:
org.opengis.referencing.operation.TransformException
-
transform
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException
Transforms coordinate tuples in the given arrays in single precision. This is a copy of the double-precision variant of this method with only cast added.- Throws:
org.opengis.referencing.operation.TransformException
-
transform
public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException
Transforms coordinate tuples in the given arrays, with source coordinates converted from single precision.- Throws:
org.opengis.referencing.operation.TransformException
-
transform
public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException
Transforms coordinate tuples in the given arrays, with target coordinates converted to single precision.- Throws:
org.opengis.referencing.operation.TransformException
-
inverse
public org.opengis.referencing.operation.MathTransform inverse()
{@return the inverse of this coordinate operation}.
-
-