/*$************************************************************************************************
**
** $Id: CoordinateOperationAuthorityFactory.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/CoordinateOperationAuthorityFactory.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.referencing.operation;
// J2SE dependencies
import java.util.Set;
// OpenGIS direct dependencies and extensions
import org.opengis.referencing.AuthorityFactory;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.NoSuchAuthorityCodeException; // For javadoc
import org.opengis.referencing.crs.CoordinateReferenceSystem;
// Annotations
import org.opengis.annotation.UML;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* Creates coordinate transformation objects from codes.
* The codes are maintained by an external authority.
* A commonly used authority is EPSG, which is also used
* in the GeoTIFF standard.
*
* @version Implementation specification 1.0
* @author Open Geospatial Consortium
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 1.0
*/
@UML(identifier="CT_CoordinateTransformationAuthorityFactory", specification=OGC_01009)
public interface CoordinateOperationAuthorityFactory extends AuthorityFactory {
/**
* Creates an operation from a single operation code.
* The "Authority" and "Code" values of the created object will be set
* to the authority of this object, and the code specified by the client,
* respectively. The other metadata values may or may not be set.
*
* @param code Coded value for transformation.
*
* @throws NoSuchAuthorityCodeException if the specified {@code code} was not found.
* @throws FactoryException if the object creation failed for some other reason.
*/
@UML(identifier="createFromTransformationCode", specification=OGC_01009)
CoordinateOperation createCoordinateOperation(String code) throws FactoryException;
/**
* Creates an operation from coordinate reference system codes.
*
* @param sourceCode Coded value of source coordinate reference system.
* @param targetCode Coded value of target coordinate reference system.
*
* @throws NoSuchAuthorityCodeException if a specified code was not found.
* @throws FactoryException if the object creation failed for some other reason.
*/
@UML(identifier="createFromCoordinateSystemCodes", specification=OGC_01009)
Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException;
}
Ads help maintain this website.