public class DefaultOperation extends DefaultSingleOperation implements Operation
In the Geotools implementation, the parameter values are
inferred from the transform. Other implementations may have to overrides
the getParameterValues() method.
DefaultOperationMethod,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected OperationMethod |
method
The operation method.
|
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transformEMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORSINGLE_LINECOORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Constructor and Description |
|---|
DefaultOperation(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
OperationMethod method)
Constructs an operation from a set of properties.
|
| Modifier and Type | Method and Description |
|---|---|
static CoordinateOperation |
create(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
MathTransform transform,
OperationMethod method,
Class<? extends CoordinateOperation> type)
Returns a coordinate operation of the specified class.
|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this operation method with the specified object for equality.
|
protected String |
formatWKT(Formatter formatter)
Format this operation as a pseudo-WKT format.
|
OperationMethod |
getMethod()
Returns the operation method.
|
ParameterValueGroup |
getParameterValues()
Returns the parameter values.
|
int |
hashCode()
Returns a hash code value for this operation method.
|
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getType, getValidAreaasSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchescleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTgetCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRSgetAlias, getIdentifiers, getName, getRemarks, toWKTprotected final OperationMethod method
public DefaultOperation(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 CoordinateOperation create(Map<String,?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method, Class<? extends CoordinateOperation> type)
Conversion or Transformation among others.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, or null.type - The minimal type as Conversion.class,
Projection.class, etc. This method may create an instance of a
subclass of type.DefaultConversion.create(org.opengis.referencing.operation.Conversion, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, java.lang.Class<? extends org.opengis.referencing.operation.Conversion>)public OperationMethod getMethod()
public ParameterValueGroup getParameterValues() throws UnsupportedOperationException
transform, if possible.getParameterValues in interface OperationUnsupportedOperationException - if the parameters values can't be determined for
current math transform implementation.DefaultMathTransformFactory.createParameterizedTransform(org.opengis.parameter.ParameterValueGroup),
AbstractMathTransform.getParameterValues()public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
compareMetadata is true, then all available properties are compared including
formula.equals in class AbstractCoordinateOperationobject - The object to compare to this.compareMetadata - true for performing a strict comparaison, or false for
comparing only properties relevant to transformations.true if both objects are equal.public int hashCode()
hashCode in class AbstractCoordinateOperationprotected String formatWKT(Formatter formatter)
formatWKT in class AbstractCoordinateOperationformatter - The formatter to use.Formattable.toWKT(),
Formattable.toString()Copyright © 1996–2019 Geotools. All rights reserved.