org.geotools.referencing.operation
Class BufferedCoordinateOperationFactory
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.operation.AbstractCoordinateOperationFactory
org.geotools.referencing.operation.BufferedCoordinateOperationFactory
- All Implemented Interfaces:
- javax.imageio.spi.RegisterableService, BufferedFactory, Factory, org.opengis.referencing.ObjectFactory, org.opengis.referencing.operation.CoordinateOperationFactory
public class BufferedCoordinateOperationFactory
- extends AbstractCoordinateOperationFactory
- implements BufferedFactory
Caches the coordinate operations created by an other factory.
Those coordinate operations may be expensive to create. During rendering and during data I/O,
some implementations make use a lof of coordinate transformations, hence caching them might
help.
In most cases, users should not need to create an instance of this class explicitly. An instance
of BufferedCoordinateOperationFactory
should be automatically registered and returned
by ReferencingFactoryFinder
in default Geotools configuration.
- Since:
- 2.3
- Version:
- $Id: BufferedCoordinateOperationFactory.java 30641 2008-06-12 17:42:27Z acuster $
- Author:
- Simone Giannecchini, Martin Desruisseaux
Method Summary |
org.opengis.referencing.operation.CoordinateOperation |
createOperation(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
Returns an operation for conversion or transformation between two coordinate reference
systems. |
org.opengis.referencing.operation.CoordinateOperation |
createOperation(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
org.opengis.referencing.operation.OperationMethod method)
Deprecated. Will be removed. |
Methods inherited from class org.geotools.referencing.operation.AbstractCoordinateOperationFactory |
concatenate, concatenate, createConcatenatedOperation, createDefiningConversion, createFromAffineTransform, createFromMathTransform, createFromMathTransform, createFromParameters, ensureNonNull, getErrorMessage, getImplementationHints, getMathTransformFactory, inverse, swapAndScaleAxis |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.Factory |
getVendor |
BufferedCoordinateOperationFactory
public BufferedCoordinateOperationFactory()
- Creates a buffered factory wrapping the default one.
BufferedCoordinateOperationFactory
public BufferedCoordinateOperationFactory(Hints userHints)
- Creates a buffered factory wrapping an other factory selected according the specified hints.
- Parameters:
userHints
- The hints to use for choosing a backing factory.
BufferedCoordinateOperationFactory
public BufferedCoordinateOperationFactory(Hints userHints,
int priority)
- Creates a buffered factory wrapping an other factory selected according the specified hints.
- Parameters:
userHints
- The hints to use for choosing a backing factory.priority
- The priority for this factory, as a number between
MINIMUM_PRIORITY
and
MAXIMUM_PRIORITY
inclusive.
BufferedCoordinateOperationFactory
public BufferedCoordinateOperationFactory(org.opengis.referencing.operation.CoordinateOperationFactory factory,
int priority)
- Wraps the specified factory.
- Parameters:
factory
- The factory to wrap.priority
- The priority for this factory, as a number between
MINIMUM_PRIORITY
and
MAXIMUM_PRIORITY
inclusive.
createOperation
public org.opengis.referencing.operation.CoordinateOperation createOperation(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
throws org.opengis.referencing.operation.OperationNotFoundException,
org.opengis.referencing.FactoryException
- Returns an operation for conversion or transformation between two coordinate reference
systems. If an operation was already created and still in the cache, the cached operation
is returned. Otherwise the operation creation is delegated to the
coordinate operation factory specified at
construction time and the result is cached.
- Specified by:
createOperation
in interface org.opengis.referencing.operation.CoordinateOperationFactory
- Parameters:
sourceCRS
- Input coordinate reference system.targetCRS
- Output coordinate reference system.
- Returns:
- A coordinate operation from
sourceCRS
to targetCRS
.
- Throws:
org.opengis.referencing.operation.OperationNotFoundException
- if no operation path was found from sourceCRS
to targetCRS
.
org.opengis.referencing.FactoryException
- if the operation creation failed for some other reason.
createOperation
public org.opengis.referencing.operation.CoordinateOperation createOperation(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
org.opengis.referencing.operation.OperationMethod method)
throws org.opengis.referencing.operation.OperationNotFoundException,
org.opengis.referencing.FactoryException
- Deprecated. Will be removed.
- Returns an operation for conversion or transformation between two coordinate reference
systems using the specified method. The current implementation delegates to the
coordinate operation factory specified at
construction time with no caching.
- Specified by:
createOperation
in interface org.opengis.referencing.operation.CoordinateOperationFactory
- Throws:
org.opengis.referencing.operation.OperationNotFoundException
org.opengis.referencing.FactoryException
Copyright © 1996-2010 Geotools. All Rights Reserved.