org.geotools.gce.imagemosaic
Class ImageMosaicReader

Object
  extended by AbstractGridCoverage2DReader
      extended by ImageMosaicReader
All Implemented Interfaces:
GridCoverage2DReader, StructuredGridCoverage2DReader, GridCoverageReader

public class ImageMosaicReader
extends AbstractGridCoverage2DReader
implements StructuredGridCoverage2DReader

Reader responsible for providing access to mosaic of georeferenced images. Citing JAI documentation: The "Mosaic" operation creates a mosaic of two or more source images. This operation could be used for example to assemble a set of overlapping geospatially rectified images into a contiguous image. It could also be used to create a montage of photographs such as a panorama. All source images are assumed to have been geometrically mapped into a common coordinate space. The origin (minX, minY) of each image is therefore taken to represent the location of the respective image in the common coordinate system of the source images. This coordinate space will also be that of the destination image. All source images must have the same data type and sample size for all bands and have the same number of bands as color components. The destination will have the same data type, sample size, and number of bands and color components as the sources.

Since:
2.3
Author:
Simone Giannecchini, GeoSolutions S.A.S, Stefan Alfons Krueger (alfonx), Wikisquare.de : Support for jar:file:foo.jar/bar.properties URLs

Field Summary
static String UNSPECIFIED
           
 
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
 
Fields inherited from interface GridCoverage2DReader
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
 
Constructor Summary
ImageMosaicReader(Object source)
          Constructor.
ImageMosaicReader(Object source, Hints uHints)
          Constructor.
 
Method Summary
protected  RasterManager addRasterManager(MosaicConfigurationBean configuration, boolean init)
          Create a RasterManager on top of this MosaicConfigurationBean
 void createCoverage(String coverageName, SimpleFeatureType indexSchema)
          Creates a granule store for a new coverage with the given feature type
 void delete(boolean deleteData)
          delete all stuff (database content, indexer files, property files, associated auxiliary files and so on).
 void dispose()
          Releases resources held by this reader.
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.
 CoordinateReferenceSystem getCoordinateReferenceSystem(String coverageName)
          Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.
 List<DimensionDescriptor> getDimensionDescriptors(String coverageName)
          Describes the dimensions supported by the specified coverage, if any.
 Set<ParameterDescriptor<List>> getDynamicParameters()
          Return the set of dynamic parameterDescriptors (the ones related to domains) for this reader.
 Set<ParameterDescriptor<List>> getDynamicParameters(String coverageName)
          Return the set of dynamic parameterDescriptors (the ones related to domains) for this reader.
 Format getFormat()
          Returns the format handled by this GridCoverageReader.
 GranuleSource getGranules(String coverageName, boolean readOnly)
          Returns the granule source for the specified coverage (might be null, if there is only one supported coverage)
 int getGridCoverageCount()
          Number of coverages for this reader is 1
 String[] getGridCoverageNames()
          Retrieve the list of coverages contained within the input source.
 ImageLayout getImageLayout()
          Retrieve the ImageLayout for the default coverage.
 ImageLayout getImageLayout(String coverageName)
          Retrieve the ImageLayout for the specified coverage.
 String[] getMetadataNames()
          Returns the list of metadata keywords associated with the input source as a whole (not associated with any particular grid coverage).
 String[] getMetadataNames(String coverageName)
          Populate the metadata names array for the specified coverageName
 String getMetadataValue(String name)
          Retrieve the metadata value for a given metadata name.
 String getMetadataValue(String coverageName, String name)
          Retrieve the metadata value for a given metadata name for a specified coverage.
 int getNumOverviews()
          Number of predetermined overviews for the default coverage.
 int getNumOverviews(String coverageName)
          Number of predetermined overviews for the specified coverage.
 GeneralEnvelope getOriginalEnvelope()
          Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.
 GeneralEnvelope getOriginalEnvelope(String coverageName)
          Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.
 GridEnvelope getOriginalGridRange()
          Retrieves the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.
 GridEnvelope getOriginalGridRange(String coverageName)
          Retrieves the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.
 MathTransform getOriginalGridToWorld(PixelInCell pixInCell)
          Retrieves the original grid to world transformation for this AbstractGridCoverage2DReader.
 MathTransform getOriginalGridToWorld(String coverageName, PixelInCell pixInCell)
          Retrieves the original grid to world transformation for this AbstractGridCoverage2DReader.
 RasterManager getRasterManager(String name)
           
 double[] getReadingResolutions(OverviewPolicy policy, double[] requestedResolution)
          Returns the actual resolution used to read the data given the specified target resolution and the specified overview policy
 double[] getReadingResolutions(String coverageName, OverviewPolicy policy, double[] requestedResolution)
          Returns the actual resolution used to read the data given the specified target resolution and the specified overview policy
 double[][] getResolutionLevels()
          Retrieve the resolution levels for the default coverage.
 double[][] getResolutionLevels(String coverageName)
          Retrieve the resolution levels for the specified coverage.
 List<HarvestedSource> harvest(String defaultCoverage, Object source, Hints hints)
          Harvests the specified source into the reader.
 boolean isParameterSupported(Identifier name)
           
 boolean isParameterSupported(String coverageName, Identifier parameterName)
          Check whether the specified parameter is supported for the specified coverage.
 boolean isReadOnly()
          Return whether this reader can modify the granule source
 GridCoverage2D read(GeneralParameterValue[] params)
          Read the current grid coverage from the stream.
 GridCoverage2D read(String coverageName, GeneralParameterValue[] params)
          Retrieves the GridEnvelope associated to the specified coverageName for this GridCoverage2DReader.
 boolean removeCoverage(String coverageName)
           
 boolean removeCoverage(String coverageName, boolean delete)
          removes a granule store for the specified coverageName
 
Methods inherited from class AbstractGridCoverage2DReader
checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, decimationOnReadingControl, finalize, getCrs, getCurrentSubname, getHighestRes, getInfo, getOverviewGridEnvelope, getOverviewGridEnvelope, getResolution, getSource, hasMoreGridCoverages, listSubNames, setlayout, setLayout, setReadParams, setReadParams, skip
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageReader
getCurrentSubname, getSource, hasMoreGridCoverages, listSubNames, skip
 

Field Detail

UNSPECIFIED

public static final String UNSPECIFIED
See Also:
Constant Field Values
Constructor Detail

ImageMosaicReader

public ImageMosaicReader(Object source,
                         Hints uHints)
                  throws IOException
Constructor.

Parameters:
source - The source object.
Throws:
IOException
UnsupportedEncodingException

ImageMosaicReader

public ImageMosaicReader(Object source)
                  throws IOException
Constructor.

Parameters:
source - The source object.
Throws:
IOException
UnsupportedEncodingException
Method Detail

getRasterManager

public RasterManager getRasterManager(String name)

getGridCoverageNames

public String[] getGridCoverageNames()
Description copied from interface: GridCoverageReader
Retrieve the list of coverages contained within the input source. Each grid can have a different coordinate system, number of dimensions and grid geometry. For example, a HDF-EOS file (GRID.HDF) contains 6 grid coverages each having a different projection. An empty array will be returned if no sub names exist.

Specified by:
getGridCoverageNames in interface GridCoverageReader
Overrides:
getGridCoverageNames in class AbstractGridCoverage2DReader
Returns:
The list of grid coverages contained within the input source.

getFormat

public Format getFormat()
Description copied from interface: GridCoverageReader
Returns the format handled by this GridCoverageReader.

Specified by:
getFormat in interface GridCoverageReader
See Also:
GridCoverageReader.getFormat()

read

public GridCoverage2D read(GeneralParameterValue[] params)
                    throws IOException
Description copied from class: AbstractGridCoverage2DReader
Read the current grid coverage from the stream.

Example:

 
 
 
The method AbstractGridCoverage2DReader.hasMoreGridCoverages() should be invoked first in order to verify that a coverage is available.

Specified by:
read in interface GridCoverage2DReader
Specified by:
read in interface GridCoverageReader
Specified by:
read in class AbstractGridCoverage2DReader
Parameters:
params - Optional parameters matching Format.getReadParameters().
Returns:
a grid coverage from the input source.
Throws:
IOException - if a read operation failed for some other input/output reason, including FileNotFoundException if no file with the given name can be found, or IIOException if an error was thrown by the underlying image library.

read

public GridCoverage2D read(String coverageName,
                           GeneralParameterValue[] params)
                    throws IOException
Description copied from interface: GridCoverage2DReader
Retrieves the GridEnvelope associated to the specified coverageName for this GridCoverage2DReader.

Specified by:
read in interface GridCoverage2DReader
Specified by:
read in interface GridCoverageReader
Overrides:
read in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work with
params - an array of GeneralParameterValue that uses a subset of the available read params for this GridCoverage2DReader as specified by the Format
Returns:
a GridCoverage2D for the underlying default coverage for this GridCoverage2DReader or null in case no GridCoverage2D can be read for the provided parameters.
Throws:
IOException - if a read operation failed for some other input/output reason, including FileNotFoundException if no file with the given name can be found, or IIOException if an error was thrown by the underlying image library.
See Also:
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])

getGridCoverageCount

public int getGridCoverageCount()
Number of coverages for this reader is 1

Specified by:
getGridCoverageCount in interface GridCoverageReader
Overrides:
getGridCoverageCount in class AbstractGridCoverage2DReader
Returns:
the number of coverages for this reader.
See Also:
GridCoverageReader.getGridCoverageCount()

dispose

public void dispose()
Releases resources held by this reader.

Specified by:
dispose in interface GridCoverageReader
Overrides:
dispose in class AbstractGridCoverage2DReader

getMetadataNames

public String[] getMetadataNames()
Description copied from interface: GridCoverageReader
Returns the list of metadata keywords associated with the input source as a whole (not associated with any particular grid coverage). If no metadata is available, the array will be empty.

Specified by:
getMetadataNames in interface GridCoverageReader
Overrides:
getMetadataNames in class AbstractGridCoverage2DReader
Returns:
The list of metadata keywords for the input source.
See Also:
GridCoverageReader.getMetadataNames()

getMetadataNames

public String[] getMetadataNames(String coverageName)
Populate the metadata names array for the specified coverageName

Specified by:
getMetadataNames in interface GridCoverageReader
Overrides:
getMetadataNames in class AbstractGridCoverage2DReader
Parameters:
coverageName -
Returns:

getMetadataValue

public String getMetadataValue(String name)
Description copied from interface: GridCoverageReader
Retrieve the metadata value for a given metadata name.

Specified by:
getMetadataValue in interface GridCoverageReader
Overrides:
getMetadataValue in class AbstractGridCoverage2DReader
Parameters:
name - Metadata keyword for which to retrieve metadata.
Returns:
The metadata value for the given metadata name. Should be one of the name returned by GridCoverageReader.getMetadataNames().
See Also:
GridCoverageReader.getMetadataValue(java.lang.String)

getMetadataValue

public String getMetadataValue(String coverageName,
                               String name)
Description copied from interface: GridCoverageReader
Retrieve the metadata value for a given metadata name for a specified coverage.

Specified by:
getMetadataValue in interface GridCoverageReader
Overrides:
getMetadataValue in class AbstractGridCoverage2DReader
name - Metadata keyword for which to retrieve metadata.
Returns:
The metadata value for the given metadata name. Should be one of the name returned by GridCoverageReader.getMetadataNames().

getDynamicParameters

public Set<ParameterDescriptor<List>> getDynamicParameters()
Description copied from class: AbstractGridCoverage2DReader
Return the set of dynamic parameterDescriptors (the ones related to domains) for this reader. Default implementation returns an empty set of parameters

Specified by:
getDynamicParameters in interface GridCoverage2DReader
Overrides:
getDynamicParameters in class AbstractGridCoverage2DReader
Returns:
the Set of dynamic read parameters supported by this GridCoverage2DReader.

getDynamicParameters

public Set<ParameterDescriptor<List>> getDynamicParameters(String coverageName)
Description copied from class: AbstractGridCoverage2DReader
Return the set of dynamic parameterDescriptors (the ones related to domains) for this reader. Default implementation returns an empty set of parameters

Specified by:
getDynamicParameters in interface GridCoverage2DReader
Overrides:
getDynamicParameters in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work with
Returns:
the Set of dynamic read parameters supported by this GridCoverage2DReader.

isParameterSupported

public boolean isParameterSupported(Identifier name)

getNumOverviews

public int getNumOverviews(String coverageName)
Description copied from interface: GridCoverage2DReader
Number of predetermined overviews for the specified coverage.

Specified by:
getNumOverviews in interface GridCoverage2DReader
Overrides:
getNumOverviews in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage for which we do want to get the number of overviews.
Returns:
The number of predetermined overviews for the specified coverage. 0 if none are available, -1 if infinite are available, otherwise a positive number.

getNumOverviews

public int getNumOverviews()
Description copied from interface: GridCoverage2DReader
Number of predetermined overviews for the default coverage.

Specified by:
getNumOverviews in interface GridCoverage2DReader
Overrides:
getNumOverviews in class AbstractGridCoverage2DReader
Returns:
The number of predetermined overviews for the default coverage. Zero if none are available, -1 if infinite are available, otherwise a positive number.

getReadingResolutions

public double[] getReadingResolutions(OverviewPolicy policy,
                                      double[] requestedResolution)
Description copied from class: AbstractGridCoverage2DReader
Returns the actual resolution used to read the data given the specified target resolution and the specified overview policy

Specified by:
getReadingResolutions in interface GridCoverage2DReader
Overrides:
getReadingResolutions in class AbstractGridCoverage2DReader
Parameters:
policy - the OverviewPolicy to use during evaluation.
requestedResolution - the requested resolution
Returns:
an array of 2 double with the resolution of the selected overview.

getReadingResolutions

public double[] getReadingResolutions(String coverageName,
                                      OverviewPolicy policy,
                                      double[] requestedResolution)
Description copied from class: AbstractGridCoverage2DReader
Returns the actual resolution used to read the data given the specified target resolution and the specified overview policy

Specified by:
getReadingResolutions in interface GridCoverage2DReader
Overrides:
getReadingResolutions in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work on.
policy - the OverviewPolicy to use during evaluation.
requestedResolution - the requested resolution
Returns:
an array of 2 double with the resolution of the selected overview.

isParameterSupported

public boolean isParameterSupported(String coverageName,
                                    Identifier parameterName)
Check whether the specified parameter is supported for the specified coverage.

Parameters:
coverageName -
parameterName -
Returns:

addRasterManager

protected RasterManager addRasterManager(MosaicConfigurationBean configuration,
                                         boolean init)
                                  throws IOException
Create a RasterManager on top of this MosaicConfigurationBean

Parameters:
configuration - the MosaicConfigurationBean to be used to create the RasterManager
init - true if the Manager should be initialized.
Returns:
Throws:
IOException

getGranules

public GranuleSource getGranules(String coverageName,
                                 boolean readOnly)
                          throws IOException,
                                 UnsupportedOperationException
Description copied from interface: StructuredGridCoverage2DReader
Returns the granule source for the specified coverage (might be null, if there is only one supported coverage)

Specified by:
getGranules in interface StructuredGridCoverage2DReader
Parameters:
coverageName - the name of the specified coverage
readOnly - a boolean indicating whether we may want modify the GranuleSource
Returns:
the requested GranuleSource
Throws:
IOException
UnsupportedOperationException

isReadOnly

public boolean isReadOnly()
Description copied from interface: StructuredGridCoverage2DReader
Return whether this reader can modify the granule source

Specified by:
isReadOnly in interface StructuredGridCoverage2DReader
Returns:

createCoverage

public void createCoverage(String coverageName,
                           SimpleFeatureType indexSchema)
                    throws IOException,
                           UnsupportedOperationException
Description copied from interface: StructuredGridCoverage2DReader
Creates a granule store for a new coverage with the given feature type

Specified by:
createCoverage in interface StructuredGridCoverage2DReader
Throws:
IOException
UnsupportedOperationException

removeCoverage

public boolean removeCoverage(String coverageName,
                              boolean delete)
                       throws IOException
Description copied from interface: StructuredGridCoverage2DReader
removes a granule store for the specified coverageName

Specified by:
removeCoverage in interface StructuredGridCoverage2DReader
Throws:
IOException

getOriginalEnvelope

public GeneralEnvelope getOriginalEnvelope()
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.

Specified by:
getOriginalEnvelope in interface GridCoverage2DReader
Overrides:
getOriginalEnvelope in class AbstractGridCoverage2DReader
Returns:
the GeneralEnvelope for this AbstractGridCoverage2DReader.

getOriginalEnvelope

public GeneralEnvelope getOriginalEnvelope(String coverageName)
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.

Specified by:
getOriginalEnvelope in interface GridCoverage2DReader
Overrides:
getOriginalEnvelope in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work on.
Returns:
the GeneralEnvelope for this AbstractGridCoverage2DReader.

getOriginalGridRange

public GridEnvelope getOriginalGridRange()
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.

Specified by:
getOriginalGridRange in interface GridCoverage2DReader
Overrides:
getOriginalGridRange in class AbstractGridCoverage2DReader
Returns:
the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.

getOriginalGridRange

public GridEnvelope getOriginalGridRange(String coverageName)
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.

Specified by:
getOriginalGridRange in interface GridCoverage2DReader
Overrides:
getOriginalGridRange in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work with
Returns:
the GeneralGridEnvelope that represents the raster grid dimensions of the highest resolution level in this dataset.

getOriginalGridToWorld

public MathTransform getOriginalGridToWorld(PixelInCell pixInCell)
Description copied from class: AbstractGridCoverage2DReader
Retrieves the original grid to world transformation for this AbstractGridCoverage2DReader.

Specified by:
getOriginalGridToWorld in interface GridCoverage2DReader
Overrides:
getOriginalGridToWorld in class AbstractGridCoverage2DReader
Parameters:
pixInCell - specifies the datum of the transformation we want.
Returns:
the original grid to world transformation for this AbstractGridCoverage2DReader.

getOriginalGridToWorld

public MathTransform getOriginalGridToWorld(String coverageName,
                                            PixelInCell pixInCell)
Description copied from class: AbstractGridCoverage2DReader
Retrieves the original grid to world transformation for this AbstractGridCoverage2DReader.

Specified by:
getOriginalGridToWorld in interface GridCoverage2DReader
Overrides:
getOriginalGridToWorld in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage to work with
pixInCell - specifies the datum of the transformation we want.
Returns:
the original grid to world transformation for this AbstractGridCoverage2DReader.

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.

Specified by:
getCoordinateReferenceSystem in interface GridCoverage2DReader
Overrides:
getCoordinateReferenceSystem in class AbstractGridCoverage2DReader
Returns:
the GeneralEnvelope for this AbstractGridCoverage2DReader.

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem(String coverageName)
Description copied from class: AbstractGridCoverage2DReader
Retrieves the GeneralEnvelope for this AbstractGridCoverage2DReader.

Specified by:
getCoordinateReferenceSystem in interface GridCoverage2DReader
Overrides:
getCoordinateReferenceSystem in class AbstractGridCoverage2DReader
Returns:
the GeneralEnvelope for this AbstractGridCoverage2DReader.

getImageLayout

public ImageLayout getImageLayout()
                           throws IOException
Description copied from interface: GridCoverage2DReader
Retrieve the ImageLayout for the default coverage.

Throw an IllegalArgumentException in case the name is wrong and/or no such a coverage exists.

Specified by:
getImageLayout in interface GridCoverage2DReader
Overrides:
getImageLayout in class AbstractGridCoverage2DReader
Returns:
an ImageLayout that is useful for actually knowing the ColorModel, the SampleModel as well as the tile grid for the default coverage.
Throws:
IOException

getImageLayout

public ImageLayout getImageLayout(String coverageName)
                           throws IOException
Description copied from interface: GridCoverage2DReader
Retrieve the ImageLayout for the specified coverage.

Throw an IllegalArgumentException in case the name is wrong and/or no such a coverage exists.

Specified by:
getImageLayout in interface GridCoverage2DReader
Overrides:
getImageLayout in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage for which we want to know the GridEnvelope.
Returns:
an ImageLayout that is useful for actually knowing the ColorModel, the SampleModel as well as the tile grid for a certain coverage.
Throws:
IOException

getResolutionLevels

public double[][] getResolutionLevels()
                               throws IOException
Description copied from interface: GridCoverage2DReader
Retrieve the resolution levels for the default coverage.

Throw an IllegalArgumentException in case the name is wrong and/or no such a coverage exists.

Specified by:
getResolutionLevels in interface GridCoverage2DReader
Overrides:
getResolutionLevels in class AbstractGridCoverage2DReader
Returns:
the resolution levels for the default coverage.
Throws:
IOException

getResolutionLevels

public double[][] getResolutionLevels(String coverageName)
                               throws IOException
Description copied from interface: GridCoverage2DReader
Retrieve the resolution levels for the specified coverage.

Throw an IllegalArgumentException in case the name is wrong and/or no such a coverage exists.

Specified by:
getResolutionLevels in interface GridCoverage2DReader
Overrides:
getResolutionLevels in class AbstractGridCoverage2DReader
Parameters:
coverageName - the name of the coverage for which we want to know the resolution levels.
Returns:
the resolution levels for the specified coverage.
Throws:
IOException

harvest

public List<HarvestedSource> harvest(String defaultCoverage,
                                     Object source,
                                     Hints hints)
                              throws IOException,
                                     UnsupportedOperationException
Description copied from interface: StructuredGridCoverage2DReader
Harvests the specified source into the reader. Depending on the implementation, the original source is harvested in place (e.g., image mosaic), or might be copied into the reader persistent storage (e.g., database raster handling)

Specified by:
harvest in interface StructuredGridCoverage2DReader
source - The source can be any kind of object, it's up to the reader implementation to understand and use it. Commons source types could be a single file, or a folder.
hints - Used to provide implementation specific hints on how to harvest the sources
Throws:
IOException
UnsupportedOperationException

getDimensionDescriptors

public List<DimensionDescriptor> getDimensionDescriptors(String coverageName)
                                                  throws IOException
Description copied from interface: StructuredGridCoverage2DReader
Describes the dimensions supported by the specified coverage, if any. (coverageName might be null, if there is only one supported coverage)

Specified by:
getDimensionDescriptors in interface StructuredGridCoverage2DReader
Throws:
IOException

delete

public void delete(boolean deleteData)
            throws IOException
Description copied from interface: StructuredGridCoverage2DReader
delete all stuff (database content, indexer files, property files, associated auxiliary files and so on).

Specified by:
delete in interface StructuredGridCoverage2DReader
Parameters:
deleteData - specifies whether data (granules) should be deleted too.
Throws:
IOException

removeCoverage

public boolean removeCoverage(String coverageName)
                       throws IOException,
                              UnsupportedOperationException
Specified by:
removeCoverage in interface StructuredGridCoverage2DReader
Throws:
IOException
UnsupportedOperationException


Copyright © 1996-2014 Geotools. All Rights Reserved.