public class DefaultConversion extends DefaultOperation implements Conversion
DefaultTransformation
,
Serialized Formmethod
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transform
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
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.
|
DefaultConversion(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
OperationMethod method)
Constructs a conversion from a set of properties.
|
Modifier and Type | Method and Description |
---|---|
static Conversion |
create(Conversion definition,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
Class<? extends Conversion> typeHint)
Returns a conversion from the specified defining conversion.
|
create, equals, formatWKT, getMethod, getParameterValues, hashCode
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getType, getValidArea
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getOperationVersion, getSourceCRS, getTargetCRS
getMethod, getParameterValues
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultConversion(Conversion definition, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform)
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.public DefaultConversion(Map<String,?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method)
AbstractCoordinateOperation
constructor.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.public static Conversion create(Conversion definition, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, Class<? extends Conversion> typeHint)
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.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
.DefaultOperation.create(java.util.Map<java.lang.String, ?>, 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 © 1996–2019 Geotools. All rights reserved.