@Extension public interface MathTransform2D extends MathTransform
CoordinateOperation.getMathTransform()may returns instance of this interface when source and destination coordinate systems are both two dimensional.
MathTransformby adding some methods for easier interoperability with Java2D.
If the transformation is affine, then
MathTransform shall be an
immutable instance of
|Modifier and Type||Method and Description|
Transforms the specified shape.
Gets the derivative of this transform at a point.
Creates the inverse transform of this object.
Transforms the specified
Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException
ptSrcand stores the result in
null, a new
Point2Dobject is allocated and then the result of the transformation is stored in this object. In either case,
ptDst, which contains the transformed point, is returned for convenience. If
ptDstare the same object, the input point is correctly overwritten with the transformed point.
ptSrc- the coordinate point to be transformed.
ptDst- the coordinate point that stores the result of transforming
nullif a new point should be created.
ptSrcand stroring the result in
ptDstor in a new point if
TransformException- if the point can't be transformed.
@Extension Shape createTransformedShape(Shape shape) throws TransformException
shape- The Shape to transform.
shapeunmodified if this transform is identity.
TransformException- if a transform failed.
Matrix derivative(Point2D point) throws TransformException
point- The coordinate point where to evaluate the derivative. Null value is accepted only if the derivative is the same everywhere. For example affine transform accept null value since they produces identical derivative no matter the coordinate value. But most map projection will requires a non-null value.
NullPointerException- if the derivative dependents on coordinate and
TransformException- if the derivative can't be evaluated at the specified point.
Copyright © 1996–2015 Geotools. All rights reserved.