| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.operation.AbstractCoordinateOperation org.geotools.referencing.operation.DefaultSingleOperation org.geotools.referencing.operation.DefaultOperation
All known Subclasses: org.geotools.referencing.operation.DefaultConversion, org.geotools.referencing.operation.DefaultTransformation,
DefaultOperation | public class DefaultOperation extends DefaultSingleOperation implements Operation(Code) | | A parameterized mathematical operation on coordinates that transforms or converts
coordinates to another coordinate reference system. This coordinate operation thus
uses an operation method, usually with associated parameter values.
In the Geotools implementation, the
are inferred from the
. Other implementations may have
to overrides the
DefaultOperation.getParameterValues method.
since: 2.1 version: $Id: DefaultOperation.java 24384 2007-02-14 00:23:05Z desruisseaux $ author: Martin Desruisseaux See Also: DefaultOperationMethod |
Field Summary | |
final protected OperationMethod | method The operation method. |
Constructor Summary | |
| DefaultOperation(Conversion definition, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform) Constructs a new operation with the same values than the specified defining
conversion, together with the specified source and target CRS. | public | DefaultOperation(Map properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method) Constructs an operation from a set of properties. |
Method Summary | |
public static CoordinateOperation | create(Map properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method, Class type) Returns a coordinate operation of the specified class. | public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this operation method with the specified object for equality.
If
compareMetadata is
true , then all available properties
are compared including
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) | public OperationMethod | getMethod() Returns the operation method. | public ParameterValueGroup | getParameterValues() Returns the parameter values. | public int | hashCode() Returns a hash code value for this operation method. |
method | final protected OperationMethod method(Code) | | The operation method.
|
DefaultOperation | DefaultOperation(Conversion definition, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform)(Code) | | Constructs a new operation with the same values than the specified defining
conversion, together with the specified source and target CRS. This constructor
is used by
ConversionImpl only.
|
DefaultOperation | public DefaultOperation(Map properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method)(Code) | | Constructs an operation from a set of properties. The properties given in argument
follow the same rules than for the
AbstractCoordinateOperation constructor.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: sourceCRS - The source CRS. Parameters: targetCRS - The target CRS. Parameters: transform - Transform from positions in the to positions in the . Parameters: method - The operation method. |
create | public static CoordinateOperation create(Map properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, MathTransform transform, OperationMethod method, Class type)(Code) | | Returns a coordinate operation of the specified class. This method may constructs instance of
Conversion or
Transformation among others.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: sourceCRS - The source CRS. Parameters: targetCRS - The target CRS. Parameters: transform - Transform from positions in the to positions in the . Parameters: method - The operation method, or null . Parameters: type - The minimal type as .class ,.class , etc. This method maycreate an instance of a subclass of type . See Also: DefaultConversion.create |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this operation method with the specified object for equality.
If
compareMetadata is
true , then all available properties
are compared including
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
getMethod | public OperationMethod getMethod()(Code) | | Returns the operation method.
|
hashCode | public int hashCode()(Code) | | Returns a hash code value for this operation method.
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|