org.geotools.referencing.operation
Class DefiningConversion

java.lang.Object
  extended by org.geotools.referencing.wkt.Formattable
      extended by org.geotools.referencing.AbstractIdentifiedObject
          extended by org.geotools.referencing.operation.AbstractCoordinateOperation
              extended by org.geotools.referencing.operation.DefaultSingleOperation
                  extended by org.geotools.referencing.operation.DefaultOperation
                      extended by org.geotools.referencing.operation.DefaultConversion
                          extended by org.geotools.referencing.operation.DefiningConversion
All Implemented Interfaces:
java.io.Serializable, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.Conversion, org.opengis.referencing.operation.CoordinateOperation, org.opengis.referencing.operation.Operation, org.opengis.referencing.operation.SingleOperation

public class DefiningConversion
extends DefaultConversion

A conversion used for the definition of a derived CRS (including projections). This conversion has no source and target CRS, and no math transform. Those elements are created by the derived CRS itself.

Since:
2.1
Version:
$Id: DefiningConversion.java 31000 2008-07-10 21:11:13Z desruisseaux $
Author:
Martin Desruisseaux (IRD), Matthias Basler
See Also:
CoordinateOperationFactory.createDefiningConversion(java.util.Map, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup), Serialized Form

Field Summary
 
Fields inherited from class org.geotools.referencing.operation.DefaultOperation
method
 
Fields inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transform
 
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from class org.geotools.referencing.wkt.Formattable
SINGLE_LINE
 
Fields inherited from interface org.opengis.referencing.operation.CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefiningConversion(java.util.Map<java.lang.String,?> properties, org.opengis.referencing.operation.OperationMethod method, org.opengis.referencing.operation.MathTransform transform)
          Constructs a conversion from a math transform.
DefiningConversion(java.util.Map<java.lang.String,?> properties, org.opengis.referencing.operation.OperationMethod method, org.opengis.parameter.ParameterValueGroup parameters)
          Constructs a conversion from a set of parameters.
DefiningConversion(java.lang.String name, org.opengis.parameter.ParameterValueGroup parameters)
          Convenience constructor for creating a defining conversion with a default operation method.
 
Method Summary
protected  java.lang.String formatWKT(Formatter formatter)
          Format this operation as a pseudo-WKT format.
 org.opengis.parameter.ParameterValueGroup getParameterValues()
          Returns the parameter values.
 
Methods inherited from class org.geotools.referencing.operation.DefaultConversion
create
 
Methods inherited from class org.geotools.referencing.operation.DefaultOperation
create, equals, getMethod, hashCode
 
Methods inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getType, getValidArea
 
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, nameMatches
 
Methods inherited from class org.geotools.referencing.wkt.Formattable
cleanupThreadLocals, 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.operation.Conversion
getOperationVersion, getSourceCRS, getTargetCRS
 
Methods inherited from interface org.opengis.referencing.operation.Operation
getMethod
 
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperation
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getScope
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Constructor Detail

DefiningConversion

public DefiningConversion(java.lang.String name,
                          org.opengis.parameter.ParameterValueGroup parameters)
Convenience constructor for creating a defining conversion with a default operation method. The operation method is assumed two-dimensional.

Parameters:
name - The conversion name.
parameters - The parameter values.
Since:
2.2

DefiningConversion

public DefiningConversion(java.util.Map<java.lang.String,?> properties,
                          org.opengis.referencing.operation.OperationMethod method,
                          org.opengis.parameter.ParameterValueGroup parameters)
Constructs a conversion from a set of parameters. The properties given in argument follow the same rules than for the AbstractCoordinateOperation constructor.

Parameters:
properties - Set of properties. Should contains at least "name".
method - The operation method.
parameters - The parameter values.

DefiningConversion

public DefiningConversion(java.util.Map<java.lang.String,?> properties,
                          org.opengis.referencing.operation.OperationMethod method,
                          org.opengis.referencing.operation.MathTransform transform)
Constructs a conversion from a math transform. The properties given in argument follow the same rules than for the AbstractCoordinateOperation constructor.

Parameters:
properties - Set of properties. Should contains at least "name".
method - The operation method.
transform - Transform from positions in the source CRS to positions in the target CRS.
Since:
2.5
Method Detail

getParameterValues

public org.opengis.parameter.ParameterValueGroup getParameterValues()
Returns the parameter values.

Specified by:
getParameterValues in interface org.opengis.referencing.operation.Operation
Overrides:
getParameterValues in class DefaultOperation
See Also:
DefaultMathTransformFactory.createParameterizedTransform(org.opengis.parameter.ParameterValueGroup), AbstractMathTransform.getParameterValues()

formatWKT

protected java.lang.String formatWKT(Formatter formatter)
Format this operation as a pseudo-WKT format. No WKT format were defined for coordinate operation at the time this method was written. This method may change in any future version until a standard format is found.

Overrides:
formatWKT in class DefaultOperation
Parameters:
formatter - The formatter to use.
Returns:
The WKT element name.
See Also:
Formattable.toWKT(), Formattable.toString()


Copyright © 1996-2010 Geotools. All Rights Reserved.