|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFactory
ReferencingFactory
AbstractCoordinateOperationFactory
BufferedCoordinateOperationFactory
public class BufferedCoordinateOperationFactory
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.
Field Summary |
---|
Fields inherited from class AbstractCoordinateOperationFactory |
---|
AXIS_CHANGES, DATUM_SHIFT, ELLIPSOID_SHIFT, GEOCENTRIC_CONVERSION, IDENTITY, INVERSE_OPERATION |
Fields inherited from class ReferencingFactory |
---|
LOGGER |
Fields inherited from class AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
BufferedCoordinateOperationFactory()
Creates a buffered factory wrapping the default one. |
|
BufferedCoordinateOperationFactory(CoordinateOperationFactory factory,
int priority)
Wraps the specified factory. |
|
BufferedCoordinateOperationFactory(Hints userHints)
Creates a buffered factory wrapping an other factory selected according the specified hints. |
|
BufferedCoordinateOperationFactory(Hints userHints,
int priority)
Creates a buffered factory wrapping an other factory selected according the specified hints. |
Method Summary | |
---|---|
CoordinateOperation |
createOperation(CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS)
Returns an operation for conversion or transformation between two coordinate reference systems. |
CoordinateOperation |
createOperation(CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
OperationMethod method)
Deprecated. Will be removed. |
Methods inherited from class ReferencingFactory |
---|
getVendor |
Methods inherited from class AbstractFactory |
---|
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Factory |
---|
getImplementationHints |
Methods inherited from interface Factory |
---|
getVendor |
Constructor Detail |
---|
public BufferedCoordinateOperationFactory()
public BufferedCoordinateOperationFactory(Hints userHints)
userHints
- The hints to use for choosing a backing factory.public BufferedCoordinateOperationFactory(Hints userHints, int priority)
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.public BufferedCoordinateOperationFactory(CoordinateOperationFactory factory, int priority)
factory
- The factory to wrap.priority
- The priority for this factory, as a number between
MINIMUM_PRIORITY
and
MAXIMUM_PRIORITY
inclusive.Method Detail |
---|
public CoordinateOperation createOperation(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS) throws OperationNotFoundException, FactoryException
createOperation
in interface CoordinateOperationFactory
sourceCRS
- Input coordinate reference system.targetCRS
- Output coordinate reference system.
sourceCRS
to targetCRS
.
OperationNotFoundException
- if no operation path was found from sourceCRS
to targetCRS
.
FactoryException
- if the operation creation failed for some other reason.public CoordinateOperation createOperation(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, OperationMethod method) throws OperationNotFoundException, FactoryException
createOperation
in interface CoordinateOperationFactory
sourceCRS
- Input coordinate reference system.targetCRS
- Output coordinate reference system.method
- The algorithmic method for conversion or transformation.
sourceCRS
to targetCRS
.
OperationNotFoundException
- if no operation path was found from sourceCRS
to targetCRS
.
FactoryException
- if the operation creation failed for some other reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |