|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.referencing.wkt.Formattable
org.geotools.referencing.AbstractIdentifiedObject
org.geotools.referencing.operation.DefaultOperationMethod
Definition of an algorithm used to perform a coordinate operation. Most operation methods use a number of operation parameters, although some coordinate conversions use none. Each coordinate operation using the method assigns values to these parameters.
DefaultOperation,
Serialized Form| Field Summary | |
protected int |
sourceDimensions
Number of dimensions in the source CRS of this operation method. |
protected int |
targetDimensions
Number of dimensions in the target CRS of this operation method. |
| Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject |
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from interface org.opengis.referencing.operation.OperationMethod |
FORMULA_KEY |
| Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
DefaultOperationMethod(java.util.Map properties,
int sourceDimensions,
int targetDimensions,
org.opengis.parameter.GeneralParameterDescriptor[] parameters)
Deprecated. Use the method expecting a parameter group instead. |
|
DefaultOperationMethod(java.util.Map properties,
int sourceDimensions,
int targetDimensions,
org.opengis.parameter.ParameterDescriptorGroup parameters)
Constructs an operation method from a set of properties and a descriptor group. |
|
DefaultOperationMethod(org.opengis.referencing.operation.MathTransform transform)
Convenience constructor that creates an operation method from a math transform. |
|
DefaultOperationMethod(org.opengis.referencing.operation.OperationMethod method)
Constructs a new operation method with the same values than the specified one. |
|
DefaultOperationMethod(org.opengis.referencing.operation.OperationMethod method,
int sourceDimensions,
int targetDimensions)
Constructs a new operation method with the same values than the specified one except the dimensions. |
|
| Method Summary | |
static void |
checkDimensions(org.opengis.referencing.operation.OperationMethod method,
org.opengis.referencing.operation.MathTransform transform)
Checks if an operation method and a math transform have a compatible number of source and target dimensions. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this operation method with the specified object for equality. |
protected java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
org.opengis.util.InternationalString |
getFormula()
Formula(s) or procedure used by this operation method. |
org.opengis.parameter.ParameterDescriptorGroup |
getParameters()
Returns the set of parameters. |
int |
getSourceDimensions()
Number of dimensions in the source CRS of this operation method. |
int |
getTargetDimensions()
Number of dimensions in the target CRS of this operation method. |
int |
hashCode()
Returns a hash code value for this operation method. |
| Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject |
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches |
| Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
protected final int sourceDimensions
protected final int targetDimensions
| Constructor Detail |
public DefaultOperationMethod(org.opengis.referencing.operation.MathTransform transform)
transform - The math transform to describe.public DefaultOperationMethod(org.opengis.referencing.operation.OperationMethod method)
public DefaultOperationMethod(org.opengis.referencing.operation.OperationMethod method,
int sourceDimensions,
int targetDimensions)
method - The operation method to copy.sourceDimensions - Number of dimensions in the source CRS of this operation method.targetDimensions - Number of dimensions in the target CRS of this operation method.
public DefaultOperationMethod(java.util.Map properties,
int sourceDimensions,
int targetDimensions,
org.opengis.parameter.GeneralParameterDescriptor[] parameters)
properties - Set of properties. Should contains at least "name".sourceDimensions - Number of dimensions in the source CRS of this operation method.targetDimensions - Number of dimensions in the target CRS of this operation method.parameters - The set of parameters, or or an empty array if none.
public DefaultOperationMethod(java.util.Map properties,
int sourceDimensions,
int targetDimensions,
org.opengis.parameter.ParameterDescriptorGroup parameters)
| Property name | Value type | Value given to |
|---|---|---|
"formula" |
String or InternationalString |
getFormula() |
properties - Set of properties. Should contains at least "name".sourceDimensions - Number of dimensions in the source CRS of this operation method.targetDimensions - Number of dimensions in the target CRS of this operation method.parameters - The set of parameters, or if none.| Method Detail |
public org.opengis.util.InternationalString getFormula()
getFormula in interface org.opengis.referencing.operation.OperationMethodpublic int getSourceDimensions()
getSourceDimensions in interface org.opengis.referencing.operation.OperationMethodpublic int getTargetDimensions()
getTargetDimensions in interface org.opengis.referencing.operation.OperationMethodpublic org.opengis.parameter.ParameterDescriptorGroup getParameters()
getParameters in interface org.opengis.referencing.operation.OperationMethod
public boolean equals(AbstractIdentifiedObject object,
boolean compareMetadata)
equals in class AbstractIdentifiedObjectobject - The object to compare to .compareMetadata - for performing a strict comparaison, or
for comparing only properties relevant to transformations.
public int hashCode()
hashCode in class AbstractIdentifiedObjectprotected java.lang.String formatWKT(Formatter formatter)
formatWKT in class Formattableformatter - The formatter to use.
Formattable.toWKT(),
Formattable.toString()
public static void checkDimensions(org.opengis.referencing.operation.OperationMethod method,
org.opengis.referencing.operation.MathTransform transform)
throws org.opengis.spatialschema.geometry.MismatchedDimensionException
method - The operation method to compare to the math transform, or .transform - The math transform to compare to the operation method, or .
org.opengis.spatialschema.geometry.MismatchedDimensionException - if the number of dimensions are incompatibles.ConcatenatedTransform and PassThroughTransform works
only for Geotools implementation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||