Class ImageMosaicReader
- Object
-
- AbstractGridCoverage2DReader
-
- ImageMosaicReader
-
- All Implemented Interfaces:
GridCoverageReader,GridCoverage2DReader,StructuredGridCoverage2DReader
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
Fields Modifier and Type Field Description static StringUNSPECIFIED-
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, 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, MULTICRS_EPSGCODES, MULTICRS_READER, PAM_DATASET, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
-
-
Constructor Summary
Constructors Constructor Description ImageMosaicReader(Object source)Constructor.ImageMosaicReader(Object source, Hints uHints)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RasterManageraddRasterManager(MosaicConfigurationBean configuration, boolean init)Create a RasterManager on top of thisMosaicConfigurationBeanprotected booleancheckName(String coverageName)This method is responsible for checking the provided coverage name against the coverage name for thisGridCoverage2DReader.voidcreateCoverage(String coverageName, SimpleFeatureType indexSchema)Creates a granule store for a new coverage with the given feature typevoiddelete(boolean deleteData)delete all stuff (database content, indexer files, property files, associated auxiliary files and so on).voiddispose()Releases resources held by this reader.CoordinateReferenceSystemgetCoordinateReferenceSystem()Retrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.CoordinateReferenceSystemgetCoordinateReferenceSystem(String coverageName)Retrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.DatasetLayoutgetDatasetLayout()Returns theDatasetLayoutfor the coverage.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.FormatgetFormat()Returns the format handled by thisGridCoverageReader.GranuleSourcegetGranules(String coverageName, boolean readOnly)Returns the granule source for the specified coverage (might be null, if there is only one supported coverage)intgetGridCoverageCount()Number of coverages for this reader is 1String[]getGridCoverageNames()Retrieve the list of coverages contained within the input source.protected double[]getHighestRes()Package private accessor for the highest resolution values.ImageLayoutgetImageLayout()Retrieve theImageLayoutfor the default coverage.ImageLayoutgetImageLayout(String coverageName)Retrieve theImageLayoutfor the specified coverage.ServiceInfogetInfo()Information about this source.ResourceInfogetInfo(String coverageName)Default implementation returns a FileResourceInfo containing same fileGroup list contained in the ServiceInfo object.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 coverageNameStringgetMetadataValue(String name)Retrieve the metadata value for a given metadata name.StringgetMetadataValue(String coverageName, String name)Retrieve the metadata value for a given metadata name for a specified coverage.ExecutorServicegetMultiThreadedLoader()GeneralBoundsgetOriginalEnvelope()Retrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.GeneralBoundsgetOriginalEnvelope(String coverageName)Retrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.GridEnvelopegetOriginalGridRange()Retrieves theGeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.GridEnvelopegetOriginalGridRange(String coverageName)Retrieves theGeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.MathTransformgetOriginalGridToWorld(String coverageName, PixelInCell pixInCell)Retrieves the original grid to world transformation for thisAbstractGridCoverage2DReader.MathTransformgetOriginalGridToWorld(PixelInCell pixInCell)Retrieves the original grid to world transformation for thisAbstractGridCoverage2DReader.RasterManagergetRasterManager(String name)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 policydouble[]getReadingResolutions(OverviewPolicy policy, double[] requestedResolution)Returns the actual resolution used to read the data given the specified target resolution and the specified overview policydouble[][]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.booleanisParameterSupported(String coverageName, Identifier parameterName)Check whether the specified parameter is supported for the specified coverage.booleanisParameterSupported(Identifier name)booleanisReadOnly()Return whether this reader can modify the granule sourceGridCoverage2Dread(String coverageName, GeneralParameterValue[] params)Retrieves theGridEnvelopeassociated to the specified coverageName for thisGridCoverage2DReader.GridCoverage2Dread(GeneralParameterValue[] params)Read the current grid coverage from the stream.booleanremoveCoverage(String coverageName, boolean delete)removes a granule store for the specified coverageName-
Methods inherited from class AbstractGridCoverage2DReader
addAllSiblings, addSiblings, collectScaleOffset, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, finalize, getDatasetLayout, getFiles, getGroundControlPoints, getGroundControlPoints, getHighestRes, getMultiLevelROIProvider, getOverviewGridEnvelope, getOverviewGridEnvelope, getPamDataset, getPamDataset, getRescaledRasterToModel, getResolution, getSibling, getSource, getSourceAsFile, setlayout, setLayout, setReadParams, setReadParams
-
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface GridCoverage2DReader
getDatasetLayout
-
Methods inherited from interface GridCoverageReader
getSource
-
-
-
-
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
-
ImageMosaicReader
public ImageMosaicReader(Object source) throws IOException
Constructor.- Parameters:
source- The source object.- Throws:
IOException
-
-
Method Detail
-
getRasterManager
public RasterManager getRasterManager(String name)
-
getGridCoverageNames
public String[] getGridCoverageNames()
Description copied from interface:GridCoverageReaderRetrieve 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:
getGridCoverageNamesin interfaceGridCoverageReader- Overrides:
getGridCoverageNamesin classAbstractGridCoverage2DReader- Returns:
- The list of grid coverages contained within the input source.
-
getFormat
public Format getFormat()
Description copied from interface:GridCoverageReaderReturns the format handled by thisGridCoverageReader.- Specified by:
getFormatin interfaceGridCoverageReader- See Also:
GridCoverageReader.getFormat()
-
read
public GridCoverage2D read(GeneralParameterValue[] params) throws IOException
Description copied from class:AbstractGridCoverage2DReaderRead the current grid coverage from the stream.Example:
- Specified by:
readin interfaceGridCoverage2DReader- Specified by:
readin interfaceGridCoverageReader- Specified by:
readin classAbstractGridCoverage2DReader- Parameters:
params- Optional parameters matchingFormat.getReadParameters().- Returns:
- a grid coverage from the input source.
- Throws:
IOException- if a read operation failed for some other input/output reason, includingFileNotFoundExceptionif no file with the givennamecan be found, orIIOExceptionif an error was thrown by the underlying image library.
-
read
public GridCoverage2D read(String coverageName, GeneralParameterValue[] params) throws IOException
Description copied from interface:GridCoverage2DReaderRetrieves theGridEnvelopeassociated to the specified coverageName for thisGridCoverage2DReader.- Specified by:
readin interfaceGridCoverage2DReader- Specified by:
readin interfaceGridCoverageReader- Overrides:
readin classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work withparams- an array ofGeneralParameterValuethat uses a subset of the available read params for thisGridCoverage2DReaderas specified by theFormat- Returns:
- a
GridCoverage2Dfor the underlying default coverage for thisGridCoverage2DReaderornullin case noGridCoverage2Dcan be read for the provided parameters. - Throws:
IOException- if a read operation failed for some other input/output reason, includingFileNotFoundExceptionif no file with the givennamecan be found, orIIOExceptionif an error was thrown by the underlying image library.- See Also:
@Override
-
getHighestRes
protected double[] getHighestRes()
Package private accessor for the highest resolution values.- Overrides:
getHighestResin classAbstractGridCoverage2DReader- Returns:
- the highest resolution values.
-
getGridCoverageCount
public int getGridCoverageCount()
Number of coverages for this reader is 1- Specified by:
getGridCoverageCountin interfaceGridCoverageReader- Overrides:
getGridCoverageCountin classAbstractGridCoverage2DReader- Returns:
- the number of coverages for this reader.
- See Also:
GridCoverageReader.getGridCoverageCount()
-
dispose
public void dispose()
Releases resources held by this reader.- Specified by:
disposein interfaceGridCoverageReader- Overrides:
disposein classAbstractGridCoverage2DReader
-
getMetadataNames
public String[] getMetadataNames()
Description copied from interface:GridCoverageReaderReturns 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:
getMetadataNamesin interfaceGridCoverageReader- Overrides:
getMetadataNamesin classAbstractGridCoverage2DReader- 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:
getMetadataNamesin interfaceGridCoverageReader- Overrides:
getMetadataNamesin classAbstractGridCoverage2DReader- Returns:
- The list of metadata keywords for the input source.
-
getMetadataValue
public String getMetadataValue(String name)
Description copied from interface:GridCoverageReaderRetrieve the metadata value for a given metadata name.- Specified by:
getMetadataValuein interfaceGridCoverageReader- Overrides:
getMetadataValuein classAbstractGridCoverage2DReader- 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:GridCoverageReaderRetrieve the metadata value for a given metadata name for a specified coverage.- Specified by:
getMetadataValuein interfaceGridCoverageReader- Overrides:
getMetadataValuein classAbstractGridCoverage2DReadername- 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:AbstractGridCoverage2DReaderReturn the set of dynamic parameterDescriptors (the ones related to domains) for this reader. Default implementation returns an empty set of parameters- Specified by:
getDynamicParametersin interfaceGridCoverage2DReader- Overrides:
getDynamicParametersin classAbstractGridCoverage2DReader- Returns:
- the
Setof dynamic read parameters supported by thisGridCoverage2DReader.
-
getDynamicParameters
public Set<ParameterDescriptor<List>> getDynamicParameters(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderReturn the set of dynamic parameterDescriptors (the ones related to domains) for this reader. Default implementation returns an empty set of parameters- Specified by:
getDynamicParametersin interfaceGridCoverage2DReader- Overrides:
getDynamicParametersin classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work with- Returns:
- the
Setof dynamic read parameters supported by thisGridCoverage2DReader.
-
isParameterSupported
public boolean isParameterSupported(Identifier name)
-
getReadingResolutions
public double[] getReadingResolutions(OverviewPolicy policy, double[] requestedResolution) throws IOException
Description copied from class:AbstractGridCoverage2DReaderReturns the actual resolution used to read the data given the specified target resolution and the specified overview policy- Specified by:
getReadingResolutionsin interfaceGridCoverage2DReader- Overrides:
getReadingResolutionsin classAbstractGridCoverage2DReader- Parameters:
policy- theOverviewPolicyto use during evaluation.requestedResolution- the requested resolution- Returns:
- an array of 2 double with the resolution of the selected overview.
- Throws:
IOException- in case an error occurs.
-
getReadingResolutions
public double[] getReadingResolutions(String coverageName, OverviewPolicy policy, double[] requestedResolution) throws IOException
Description copied from class:AbstractGridCoverage2DReaderReturns the actual resolution used to read the data given the specified target resolution and the specified overview policy- Specified by:
getReadingResolutionsin interfaceGridCoverage2DReader- Overrides:
getReadingResolutionsin classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work on.policy- theOverviewPolicyto use during evaluation.requestedResolution- the requested resolution- Returns:
- an array of 2 double with the resolution of the selected overview.
- Throws:
IOException- in case an error occurs.
-
isParameterSupported
public boolean isParameterSupported(String coverageName, Identifier parameterName)
Check whether the specified parameter is supported for the specified coverage.
-
checkName
protected boolean checkName(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderThis method is responsible for checking the provided coverage name against the coverage name for thisGridCoverage2DReader.- Overrides:
checkNamein classAbstractGridCoverage2DReader- Parameters:
coverageName- the coverage name to check.- Returns:
trueif thisGridCoverage2DReadercontains the provided coverage name,falseotherwise.
-
addRasterManager
protected RasterManager addRasterManager(MosaicConfigurationBean configuration, boolean init) throws IOException
Create a RasterManager on top of thisMosaicConfigurationBean- Parameters:
configuration- theMosaicConfigurationBeanto be used to create theRasterManagerinit-trueif the Manager should be initialized.- Throws:
IOException
-
getGranules
public GranuleSource getGranules(String coverageName, boolean readOnly) throws IOException, UnsupportedOperationException
Description copied from interface:StructuredGridCoverage2DReaderReturns the granule source for the specified coverage (might be null, if there is only one supported coverage)- Specified by:
getGranulesin interfaceStructuredGridCoverage2DReader- Parameters:
coverageName- the name of the specified coveragereadOnly- a boolean indicating whether we may want modify the GranuleSource- Returns:
- the requested
GranuleSource - Throws:
IOExceptionUnsupportedOperationException
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:StructuredGridCoverage2DReaderReturn whether this reader can modify the granule source- Specified by:
isReadOnlyin interfaceStructuredGridCoverage2DReader
-
createCoverage
public void createCoverage(String coverageName, SimpleFeatureType indexSchema) throws IOException, UnsupportedOperationException
Description copied from interface:StructuredGridCoverage2DReaderCreates a granule store for a new coverage with the given feature type- Specified by:
createCoveragein interfaceStructuredGridCoverage2DReader- Throws:
IOExceptionUnsupportedOperationException
-
removeCoverage
public boolean removeCoverage(String coverageName, boolean delete) throws IOException
Description copied from interface:StructuredGridCoverage2DReaderremoves a granule store for the specified coverageName- Specified by:
removeCoveragein interfaceStructuredGridCoverage2DReader- Throws:
IOException
-
getOriginalEnvelope
public GeneralBounds getOriginalEnvelope()
Description copied from class:AbstractGridCoverage2DReaderRetrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.- Specified by:
getOriginalEnvelopein interfaceGridCoverage2DReader- Overrides:
getOriginalEnvelopein classAbstractGridCoverage2DReader- Returns:
- the
GeneralBoundsfor thisAbstractGridCoverage2DReader.
-
getOriginalEnvelope
public GeneralBounds getOriginalEnvelope(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderRetrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.- Specified by:
getOriginalEnvelopein interfaceGridCoverage2DReader- Overrides:
getOriginalEnvelopein classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work on.- Returns:
- the
GeneralBoundsfor thisAbstractGridCoverage2DReader.
-
getOriginalGridRange
public GridEnvelope getOriginalGridRange()
Description copied from class:AbstractGridCoverage2DReaderRetrieves theGeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.- Specified by:
getOriginalGridRangein interfaceGridCoverage2DReader- Overrides:
getOriginalGridRangein classAbstractGridCoverage2DReader- Returns:
- the
GeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.
-
getOriginalGridRange
public GridEnvelope getOriginalGridRange(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderRetrieves theGeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.- Specified by:
getOriginalGridRangein interfaceGridCoverage2DReader- Overrides:
getOriginalGridRangein classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work with- Returns:
- the
GeneralGridEnvelopethat represents the raster grid dimensions of the highest resolution level in this dataset.
-
getOriginalGridToWorld
public MathTransform getOriginalGridToWorld(PixelInCell pixInCell)
Description copied from class:AbstractGridCoverage2DReaderRetrieves the original grid to world transformation for thisAbstractGridCoverage2DReader.- Specified by:
getOriginalGridToWorldin interfaceGridCoverage2DReader- Overrides:
getOriginalGridToWorldin classAbstractGridCoverage2DReader- 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:AbstractGridCoverage2DReaderRetrieves the original grid to world transformation for thisAbstractGridCoverage2DReader.- Specified by:
getOriginalGridToWorldin interfaceGridCoverage2DReader- Overrides:
getOriginalGridToWorldin classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage to work withpixInCell- 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:AbstractGridCoverage2DReaderRetrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.- Specified by:
getCoordinateReferenceSystemin interfaceGridCoverage2DReader- Overrides:
getCoordinateReferenceSystemin classAbstractGridCoverage2DReader- Returns:
- the
GeneralBoundsfor thisAbstractGridCoverage2DReader.
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderRetrieves theGeneralBoundsfor thisAbstractGridCoverage2DReader.- Specified by:
getCoordinateReferenceSystemin interfaceGridCoverage2DReader- Overrides:
getCoordinateReferenceSystemin classAbstractGridCoverage2DReader- Returns:
- the
GeneralBoundsfor thisAbstractGridCoverage2DReader.
-
getImageLayout
public ImageLayout getImageLayout() throws IOExceptionDescription copied from interface:GridCoverage2DReaderRetrieve theImageLayoutfor the default coverage.Throw an
IllegalArgumentExceptionin case the name is wrong and/or no such a coverage exists.- Specified by:
getImageLayoutin interfaceGridCoverage2DReader- Overrides:
getImageLayoutin classAbstractGridCoverage2DReader- Returns:
- an
ImageLayoutthat is useful for actually knowing theColorModel, theSampleModelas well as the tile grid for the default coverage. - Throws:
IOException
-
getImageLayout
public ImageLayout getImageLayout(String coverageName) throws IOException
Description copied from interface:GridCoverage2DReaderRetrieve theImageLayoutfor the specified coverage.Throw an
IllegalArgumentExceptionin case the name is wrong and/or no such a coverage exists.- Specified by:
getImageLayoutin interfaceGridCoverage2DReader- Overrides:
getImageLayoutin classAbstractGridCoverage2DReader- Parameters:
coverageName- the name of the coverage for which we want to know theGridEnvelope.- Returns:
- an
ImageLayoutthat is useful for actually knowing theColorModel, theSampleModelas well as the tile grid for a certain coverage. - Throws:
IOException
-
getResolutionLevels
public double[][] getResolutionLevels() throws IOExceptionDescription copied from interface:GridCoverage2DReaderRetrieve the resolution levels for the default coverage.Throw an
IllegalArgumentExceptionin case the name is wrong and/or no such a coverage exists.- Specified by:
getResolutionLevelsin interfaceGridCoverage2DReader- Overrides:
getResolutionLevelsin classAbstractGridCoverage2DReader- Returns:
- the resolution levels for the default coverage.
- Throws:
IOException
-
getResolutionLevels
public double[][] getResolutionLevels(String coverageName) throws IOException
Description copied from interface:GridCoverage2DReaderRetrieve the resolution levels for the specified coverage.Throw an
IllegalArgumentExceptionin case the name is wrong and/or no such a coverage exists.- Specified by:
getResolutionLevelsin interfaceGridCoverage2DReader- Overrides:
getResolutionLevelsin classAbstractGridCoverage2DReader- 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:StructuredGridCoverage2DReaderHarvests 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:
harvestin interfaceStructuredGridCoverage2DReader- Parameters:
defaultCoverage- Default target coverage, to be used in case the sources being harvested are not structured ones. The parameter is optional, in case it's missing the reader will use the first coverage as the default target.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:
IOExceptionUnsupportedOperationException
-
getDimensionDescriptors
public List<DimensionDescriptor> getDimensionDescriptors(String coverageName) throws IOException
Description copied from interface:StructuredGridCoverage2DReaderDescribes the dimensions supported by the specified coverage, if any. (coverageName might be null, if there is only one supported coverage)- Specified by:
getDimensionDescriptorsin interfaceStructuredGridCoverage2DReader- Throws:
IOException
-
delete
public void delete(boolean deleteData) throws IOExceptionDescription copied from interface:StructuredGridCoverage2DReaderdelete all stuff (database content, indexer files, property files, associated auxiliary files and so on).- Specified by:
deletein interfaceStructuredGridCoverage2DReader- Parameters:
deleteData- specifies whether data (granules) should be deleted too.- Throws:
IOException
-
getInfo
public ResourceInfo getInfo(String coverageName)
Description copied from class:AbstractGridCoverage2DReaderDefault implementation returns a FileResourceInfo containing same fileGroup list contained in the ServiceInfo object.- Specified by:
getInfoin interfaceGridCoverage2DReader- Overrides:
getInfoin classAbstractGridCoverage2DReader- Returns:
- ResourceInfo describing a specific coverage.
-
getInfo
public ServiceInfo getInfo()
Description copied from class:AbstractGridCoverage2DReaderInformation about this source.Subclasses should provide additional format specific information.
- Specified by:
getInfoin interfaceGridCoverage2DReader- Overrides:
getInfoin classAbstractGridCoverage2DReader- Returns:
- ServiceInfo describing getSource().
-
getMultiThreadedLoader
public ExecutorService getMultiThreadedLoader()
-
getDatasetLayout
public DatasetLayout getDatasetLayout()
Description copied from interface:GridCoverage2DReaderReturns theDatasetLayoutfor the coverage.- Specified by:
getDatasetLayoutin interfaceGridCoverage2DReader- Overrides:
getDatasetLayoutin classAbstractGridCoverage2DReader- Returns:
- a
DatasetLayoutobject containing info about Overview number and Image masks.
-
-