org.geotoolkit.referencing.operation
Class DefaultConversion
Object
FormattableObject
AbstractIdentifiedObject
AbstractCoordinateOperation
DefaultSingleOperation
DefaultConversion
- All Implemented Interfaces:
- Serializable, Formattable, LenientComparable, IdentifiedObject, Conversion, CoordinateOperation, SingleOperation
- Direct Known Subclasses:
- DefaultProjection, DefiningConversion
@Immutable
public class DefaultConversion
- extends DefaultSingleOperation
- implements Conversion
An operation on coordinates that does not include any change of
Datum. The best-known example of a
coordinate conversion is a map projection. The parameters describing coordinate
conversions are defined rather than empirically derived.
Note that some conversions have no parameters.
- Since:
- 2.0
- Version:
- 3.01
- Author:
- Martin Desruisseaux (IRD)
- See Also:
DefaultTransformation,
Serialized Form
- Module:
| Methods inherited from class AbstractCoordinateOperation |
computeHashCode, getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getType |
DefaultConversion
public DefaultConversion(Conversion definition,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform)
- Constructs a new conversion with the same values than the specified one, together with the
specified source and target CRS. While the source conversion can be an arbitrary one, it is
typically a defining conversion.
- Parameters:
definition - The defining conversion.sourceCRS - The source CRS.targetCRS - The target CRS.transform - Transform from positions in the source CRS
to positions in the target CRS.
DefaultConversion
public DefaultConversion(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
OperationMethod method)
- Constructs a conversion from a set of properties.
The properties given in argument follow the same rules than for the
base-class constructor.
- Parameters:
properties - Set of properties. Should contains at least "name".sourceCRS - The source CRS.targetCRS - The target CRS.transform - Transform from positions in the source CRS
to positions in the target CRS.method - The operation method.
create
public static Conversion create(Conversion definition,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
Class<? extends Conversion> typeHint)
- Returns a conversion from the specified defining conversion.
The new conversion will be a more specific type like a planar,
cylindrical or conic
projection. This type is inferred from the
conversion argument when possible.
However the inferred type is not always the most accurate one, so an optional
typeHint argument may be specified in order to get a more specific subclass.
This later argument is just a hint: it may be null and will be ignored if it
conflict with the automatically inferred type.
- Parameters:
definition - The defining conversion.sourceCRS - The source CRS.targetCRS - The target CRS.transform - Transform from positions in the source CRS
to positions in the target CRS.typeHint - One of PlanarProjection.class,
CylindricalProjection.class or
ConicProjection.class, or null.
- Returns:
- The conversion of the given type if possible.
- Since:
- 2.4
- See Also:
DefaultSingleOperation.create(java.util.Map, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.operation.OperationMethod, java.lang.Class extends org.opengis.referencing.operation.CoordinateOperation>)
Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.