|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleIdentifiedObject
SimpleTransform
SimpleTransform2D
public abstract class SimpleTransform2D
A CoordinateOperation working only on two-dimensional points.
Subclasses must implement the transform(Point2D, Point2D) method. All other transform
methods are defined in terms of the above-cited method. However the other transform
methods may be overridden for performances reasons.
| Field Summary |
|---|
| Fields inherited from class SimpleTransform |
|---|
sourceCRS, targetCRS |
| Fields inherited from class SimpleIdentifiedObject |
|---|
authority, code |
| Fields inherited from interface CoordinateOperation |
|---|
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Fields inherited from interface ReferenceIdentifier |
|---|
CODESPACE_KEY, VERSION_KEY |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
protected |
SimpleTransform2D(Citation authority,
String name,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS)
Creates a new operation for the given name and CRS. |
| Method Summary | |
|---|---|
Shape |
createTransformedShape(Shape shape)
Transforms the specified shape. |
Matrix |
derivative(DirectPosition point)
Gets the derivative of this transform at a point. |
Matrix |
derivative(Point2D point)
Gets the derivative of this transform at a point. |
int |
getSourceDimensions()
Returns the number of source dimensions, which is fixed to 2. |
int |
getTargetDimensions()
Returns the number of target dimensions, which is fixed to 2. |
MathTransform2D |
inverse()
Creates the inverse transform of this object. |
DirectPosition |
transform(DirectPosition ptSrc,
DirectPosition ptDst)
Transforms the specified point by delegating to transform(Point2D, Point2D). |
abstract Point2D |
transform(Point2D ptSrc,
Point2D ptDst)
Transforms the specified ptSrc and stores the result in ptDst. |
| Methods inherited from class SimpleTransform |
|---|
equals, getCoordinateOperationAccuracy, getMathTransform, getOperationVersion, getSourceCRS, getTargetCRS, isIdentity, transform, transform, transform, transform |
| Methods inherited from class SimpleIdentifiedObject |
|---|
getAlias, getAuthority, getCode, getCodeSpace, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toString, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface MathTransform |
|---|
isIdentity, toWKT, transform, transform, transform, transform |
| Methods inherited from interface CoordinateOperation |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
protected SimpleTransform2D(Citation authority,
String name,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS)
authority - Organization responsible for definition of the name, or null.name - The name of the new operation.sourceCRS - The source CRS to be returned by SimpleTransform.getSourceCRS().targetCRS - The target CRS to be returned by SimpleTransform.getTargetCRS().| Method Detail |
|---|
public final int getSourceDimensions()
getSourceDimensions in interface MathTransformgetSourceDimensions in class SimpleTransformpublic final int getTargetDimensions()
getTargetDimensions in interface MathTransformgetTargetDimensions in class SimpleTransform
public DirectPosition transform(DirectPosition ptSrc,
DirectPosition ptDst)
throws MismatchedDimensionException,
TransformException
transform(Point2D, Point2D).
transform in interface MathTransformtransform in class SimpleTransformptSrc - the specified coordinate point to be transformed.ptDst - the specified coordinate point that stores the result of transforming
ptSrc, or null.
ptSrc and storing the result
in ptDst, or a newly created point if ptDst was null.
MismatchedDimensionException - if ptSrc or
ptDst doesn't have the expected dimension.
TransformException - if the point can't be transformed.
public abstract Point2D transform(Point2D ptSrc,
Point2D ptDst)
throws TransformException
ptSrc and stores the result in ptDst.
If ptDst is null, a new Point2D object 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 ptSrc and ptDst are the same object, the input point is
correctly overwritten with the transformed point.
transform in interface MathTransform2DptSrc - the coordinate point to be transformed.ptDst - the coordinate point that stores the result of transforming ptSrc,
or null if a new point shall be created.
ptSrc and storing the result
in ptDst or in a new point if ptDst was null.
TransformException - if the point can't be transformed.
public Shape createTransformedShape(Shape shape)
throws TransformException
createTransformedShape in interface MathTransform2Dshape - The Shape to transform.
TransformException - if a transform failed.
public Matrix derivative(DirectPosition point)
throws TransformException
derivative(Point2D).
derivative in interface MathTransformderivative in class SimpleTransformpoint - The coordinate point where to evaluate the derivative.
null).
TransformException - if the derivative can't be evaluated at the specified point.
public Matrix derivative(Point2D point)
throws TransformException
derivative in interface MathTransform2Dpoint - The coordinate point where to evaluate the derivative.
null).
TransformException - if the derivative can't be evaluated at the specified point.
public MathTransform2D inverse()
throws NoninvertibleTransformException
inverse in interface MathTransforminverse in interface MathTransform2Dinverse in class SimpleTransformNoninvertibleTransformException - if the transform can't be inverted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||