Class WorldFileStoreProvider


public final class WorldFileStoreProvider extends PRJDataStore.Provider
The provider of WorldFileStore instances.
Since:
1.2
Version:
1.2
  • Field Details

    • NAME

      static final String NAME
      The format name.
      See Also:
    • SINGLE_IMAGE_FORMATS

      private static final String[] SINGLE_IMAGE_FORMATS
      Name of image formats that are considered to allow only one image. There is no public Image I/O API giving this information, so we have to use a hard-coded list. All formats not in this list are assumed to allow more than one image.

      Case of JPEG

      The JPEG image reader implementation in standard JDK seems to count a number of images that can be anything. However, documentation on the web often describes the JPEG format as a container for a single image. It is not clear if we should include JPEG in this list or not.
    • allowSingleton

      private final boolean allowSingleton
      Whether the provider is allowed to create GridCoverageResource instances instead of Aggregate instances.
  • Constructor Details

    • WorldFileStoreProvider

      public WorldFileStoreProvider()
      Creates a new provider.
    • WorldFileStoreProvider

      public WorldFileStoreProvider(boolean allowSingleton)
      Creates a new provider with the given configuration. If allowSingleton is false, then this provider will unconditionally create WorldFileStore instances that implement the Aggregate interface, regardless if the image format allows many pictures or not.
      Parameters:
      allowSingleton - whether the provider is allowed to create GridCoverageResource instances instead of Aggregate instances.
  • Method Details