Class LandsatStore

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

public class LandsatStore extends DataStore implements Aggregate
Reads Landsat metadata and bands. Landsat data are distributed as a collection of TIFF files, together with a single text file like below: This class reads the content from the given input until the first occurrence of the END keyword. Lines beginning with the # character (ignoring spaces) are treated as comment lines and ignored.
Since:
1.1
Version:
1.3
  • Field Details

    • source

      private Reader source
      The reader, or null if closed.
    • directory

      final Path directory
      The root directory where this file is located, or null if unknown.
    • location

      private final URI location
      The DataStoreProvider.LOCATION parameter value, or null if none.
    • metadata

      private org.opengis.metadata.Metadata metadata
      The object returned by getMetadata(), created when first needed and cached.
    • identifier

      private org.opengis.util.GenericName identifier
      The identifier, cached when first requested.
    • components

      private BandGroup[] components
      The array of aggregates for each Landsat band group, or null if not yet created. This array is created together with metadata and is unmodifiable.
  • Constructor Details

    • LandsatStore

      public LandsatStore(LandsatStoreProvider provider, StorageConnector connector) throws DataStoreException
      Creates a new Landsat store from the given file, URL, stream or character reader. 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, reader instance, etc).
      Throws:
      DataStoreException - if an error occurred while opening the Landsat file.
  • Method Details