Class GeoTiffStore

java.lang.Object
org.apache.sis.storage.DataStore
org.apache.sis.storage.geotiff.GeoTiffStore
All Implemented Interfaces:
AutoCloseable, Aggregate, Resource, Localized

public class GeoTiffStore extends DataStore implements Aggregate
A data store backed by GeoTIFF files.
Since:
0.8
Version:
1.3
Author:
Rémi Maréchal (Geomatys), Martin Desruisseaux (Geomatys), Thi Phuong Hao Nguyen (VNSC), Alexis Manin (Geomatys)
  • Constructor Details

    • GeoTiffStore

      public GeoTiffStore(GeoTiffStoreProvider provider, StorageConnector connector) throws DataStoreException
      Creates a new GeoTIFF store from the given file, URL or stream object. This constructor invokes StorageConnector.closeAllExcept(Object), keeping open only the needed resource.
      Parameters:
      provider - the factory that created this DataStore instance, or null if unspecified.
      connector - information about the storage (URL, stream, etc).
      Throws:
      DataStoreException - if an error occurred while opening the GeoTIFF file.
    • GeoTiffStore

      public GeoTiffStore(DataStore parent, DataStoreProvider provider, StorageConnector connector, boolean hidden) throws DataStoreException
      Creates a new GeoTIFF store as a component of a larger data store.
      Example: A Landsat data set is a collection of files in a directory or ZIP file, which includes more than 10 GeoTIFF files (one image per band or product for a scene). LandsatStore is a data store opening the Landsat metadata file as the main file, then opening each band/product using a GeoTIFF data store. Those bands/products are components of the Landsat data store.
      If the hidden parameter is true, some metadata that would normally be provided in this GeoTiffStore will be provided by individual components instead.
      Parameters:
      parent - the parent that contains this new GeoTIFF store component, or null if none.
      provider - the factory that created this DataStore instance, or null if unspecified.
      connector - information about the storage (URL, stream, etc).
      hidden - true if this GeoTIFF store will not be directly accessible from the parent. It is the case if the parent store will expose only some components instead of the GeoTIFF store itself.
      Throws:
      DataStoreException - if an error occurred while opening the GeoTIFF file.
      Since:
      1.1
  • Method Details