Class BufferedCoordinateOperationFactory

All Implemented Interfaces:
Factory, ObjectFactory, CoordinateOperationFactory, BufferedFactory, Factory, RegistrableFactory

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
Author:
Simone Giannecchini, Martin Desruisseaux
  • Constructor Details

    • 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(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.
  • Method Details