org.geotools.referencing.operation
Class DefaultConversion

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

public class DefaultConversion
extends DefaultOperation
implements org.opengis.referencing.operation.Conversion

An operation on coordinates that does not include any change of Datum. The best-known example of a coordinate conversion is a map projection. The parameters describing coordinate conversions are defined rather than empirically derived. Note that some conversions have no parameters.

Since:
2.1
Version:
$Id: DefaultConversion.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
DefaultTransformation, Serialized Form

Field Summary
 
Fields inherited from class org.geotools.referencing.operation.DefaultOperation
method
 
Fields inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transform, validArea
 
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.CoordinateOperation
OPERATION_VERSION_KEY, POSITIONAL_ACCURACY_KEY, SCOPE_KEY, VALID_AREA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultConversion(org.opengis.referencing.operation.Conversion definition, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.MathTransform transform)
          Constructs a new conversion with the same values than the specified one, together with the specified source and target CRS.
DefaultConversion(java.util.Map properties, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.MathTransform transform, org.opengis.referencing.operation.OperationMethod method)
          Constructs a conversion from a set of properties.
 
Method Summary
static org.opengis.referencing.operation.Conversion create(org.opengis.referencing.operation.Conversion definition, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.MathTransform transform)
          Returns a conversion from the specified defining conversion.
 
Methods inherited from class org.geotools.referencing.operation.DefaultOperation
create, equals, getMethod, getParameterValues, hashCode
 
Methods inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
formatWKT, getAccuracy, getAccuracy, 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
 
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.operation.Conversion
getOperationVersion
 
Methods inherited from interface org.opengis.referencing.operation.Operation
getMethod, getParameterValues
 
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperation
getMathTransform, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getValidArea
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Constructor Detail

DefaultConversion

public DefaultConversion(org.opengis.referencing.operation.Conversion definition,
                         org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
                         org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
                         org.opengis.referencing.operation.MathTransform transform)
Constructs a new conversion with the same values than the specified one, together with the specified source and target CRS. While the source conversion can be an arbitrary one, it is typically a defining conversion.

Parameters:
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.

DefaultConversion

public DefaultConversion(java.util.Map properties,
                         org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
                         org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
                         org.opengis.referencing.operation.MathTransform transform,
                         org.opengis.referencing.operation.OperationMethod method)
Constructs a conversion 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".
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.
Method Detail

create

public static org.opengis.referencing.operation.Conversion create(org.opengis.referencing.operation.Conversion definition,
                                                                  org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
                                                                  org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
                                                                  org.opengis.referencing.operation.MathTransform transform)
Returns a conversion from the specified defining conversion. This method may constructs instance of DefaultPlanarProjection or DefaultCylindricalProjection among others.

Parameters:
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.
See Also:
DefaultOperation.create(java.util.Map, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.operation.OperationMethod, java.lang.Class)


Copyright © GeoTools. All Rights Reserved.