/*$************************************************************************************************
**
** $Id: CoordinateOperation.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/referencing/operation/CoordinateOperation.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.referencing.operation;
// J2SE direct dependencies
import java.util.Collection;
// OpenGIS direct dependencies
import org.opengis.referencing.IdentifiedObject;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.metadata.quality.PositionalAccuracy;
import org.opengis.metadata.extent.Extent;
import org.opengis.util.InternationalString;
// Annotations
import org.opengis.annotation.UML;
import org.opengis.annotation.Extension;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* A mathematical operation on coordinates that transforms or converts coordinates to
* another coordinate reference system. Many but not all coordinate operations (from
* {@linkplain CoordinateReferenceSystem coordinate reference system} A to
* {@linkplain CoordinateReferenceSystem coordinate reference system} B)
* also uniquely define the inverse operation (from
* {@linkplain CoordinateReferenceSystem coordinate reference system} B to
* {@linkplain CoordinateReferenceSystem coordinate reference system} A).
* In some cases, the operation method algorithm for the inverse operation is the same
* as for the forward algorithm, but the signs of some operation parameter values must
* be reversed. In other cases, different algorithms are required for the forward and
* inverse operations, but the same operation parameter values are used. If (some)
* entirely different parameter values are needed, a different coordinate operation
* shall be defined.
*
* @version Abstract specification 2.0
* @author ISO/DIS 19111
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 1.0
*/
@UML(identifier="CC_CoordinateOperation", specification=ISO_19111)
public interface CoordinateOperation extends IdentifiedObject {
/**
* Key for the {@value} property.
* This is used for setting the value to be returned by {@link #getOperationVersion}.
*
* @see #getOperationVersion
*/
String OPERATION_VERSION_KEY = "operationVersion";
/**
* Key for the {@value} property.
* This is used for setting the value to be returned by {@link #getPositionalAccuracy}.
*
* @see #getPositionalAccuracy
*/
String POSITIONAL_ACCURACY_KEY = "positionalAccuracy";
/**
* Key for the {@value} property.
* This is used for setting the value to be returned by {@link #getValidArea}.
*
* @see #getValidArea
*/
String VALID_AREA_KEY = "validArea";
/**
* Key for the {@value} property.
* This is used for setting the value to be returned by {@link #getScope}.
*
* @see #getScope
*/
String SCOPE_KEY = "scope";
/**
* Returns the source CRS. The source CRS is mandatory for {@linkplain Transformation
* transformations} only. {@linkplain Conversion Conversions} may have a source CRS that
* is not specified here, but through
* {@link org.opengis.referencing.crs.GeneralDerivedCRS#getBaseCRS} instead.
*
* @return The source CRS, or {@code null} if not available.
*/
@UML(identifier="sourceCRS", obligation=MANDATORY, specification=ISO_19111)
CoordinateReferenceSystem getSourceCRS();
/**
* Returns the target CRS. The target CRS is mandatory for {@linkplain Transformation
* transformations} only. {@linkplain Conversion Conversions} may have a target CRS
* that is not specified here, but through
* {@link org.opengis.referencing.crs.GeneralDerivedCRS} instead.
*
* @return The target CRS, or {@code null} if not available.
*/
@UML(identifier="targetCRS", obligation=MANDATORY, specification=ISO_19111)
CoordinateReferenceSystem getTargetCRS();
/**
* Version of the coordinate transformation (i.e., instantiation due to the stochastic
* nature of the parameters). Mandatory when describing a transformation, and should not
* be supplied for a conversion.
*
* @return The coordinate operation version, or {@code null} in none.
*/
@UML(identifier="operationVersion", obligation=CONDITIONAL, specification=ISO_19111)
String getOperationVersion();
/**
* Estimate(s) of the impact of this operation on point accuracy. Gives
* position error estimates for target coordinates of this coordinate
* operation, assuming no errors in source coordinates.
*
* @return The position error estimates, or an empty collection if not available.
*/
@UML(identifier="positionalAccuracy", obligation=OPTIONAL, specification=ISO_19111)
Collection getPositionalAccuracy();
/**
* Area in which this operation is valid.
*
* @return Coordinate operation valid area, or {@code null} if not available.
*/
@UML(identifier="validArea", obligation=OPTIONAL, specification=ISO_19111)
Extent getValidArea();
/**
* Description of domain of usage, or limitations of usage, for which this operation is valid.
*/
@UML(identifier="scope", obligation=OPTIONAL, specification=ISO_19111)
InternationalString getScope();
/**
* Gets the math transform. The math transform will transform positions in the
* {@linkplain #getSourceCRS source coordinate reference system}
* into positions in the
* {@linkplain #getTargetCRS target coordinate reference system}.
*/
@UML(identifier="CT_CoordinateTransformation.getMathTransform", specification=OGC_01009)
MathTransform getMathTransform();
}
Ads help maintain this website.