Package org.geotools.gce.imagemosaic
Class ImageMosaicFileResourceInfo
- Object
-
- DefaultResourceInfo
-
- ImageMosaicFileResourceInfo
-
- All Implemented Interfaces:
FileGroupProvider,FileResourceInfo,ResourceInfo,PAMResourceInfo
public class ImageMosaicFileResourceInfo extends DefaultResourceInfo implements FileResourceInfo, PAMResourceInfo
FileResourceInfoimplementation for ImageMosaic. The specific implementation is able to retrieve support files such as, as an instance, prj and world file for TIFFs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface FileGroupProvider
FileGroupProvider.FileGroup
-
-
Constructor Summary
Constructors Constructor Description ImageMosaicFileResourceInfo(RasterManager rasterManager, String parentLocation, String locationAttributeName)ImageMosaicFileResourceInfo constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<FileGroupProvider.FileGroup>getFiles(Query query)FileGroupProviderproviding resource content.PAMDatasetgetPAMDataset()Returns a PAMDataset for the resource, if available, or null, otherwisebooleanreloadPAMDataset()Hints to reload the PAMDataset, if possible.-
Methods inherited from class DefaultResourceInfo
getBounds, getCRS, getDescription, getKeywords, getName, getSchema, getTitle, setBounds, setCRS, setDescription, setKeywords, setName, setSchema, setTitle
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ResourceInfo
getBounds, getCRS, getDescription, getKeywords, getName, getSchema, getTitle
-
-
-
-
Constructor Detail
-
ImageMosaicFileResourceInfo
public ImageMosaicFileResourceInfo(RasterManager rasterManager, String parentLocation, String locationAttributeName)
ImageMosaicFileResourceInfo constructor- Parameters:
rasterManager- manager theRasterManagerinstance for underlying index info retrieval and managementparentLocation- the granules parentLocation (relative paths refer to that)locationAttributeName- the actual location attribute name
-
-
Method Detail
-
getFiles
public CloseableIterator<FileGroupProvider.FileGroup> getFiles(Query query)
Description copied from interface:FileResourceInfoFileGroupProviderproviding resource content.- Specified by:
getFilesin interfaceFileGroupProvider- Specified by:
getFilesin interfaceFileResourceInfo- Returns:
- A
FileGroupProviderinstance providing resource content
-
getPAMDataset
public PAMDataset getPAMDataset()
Description copied from interface:PAMResourceInfoReturns a PAMDataset for the resource, if available, or null, otherwise- Specified by:
getPAMDatasetin interfacePAMResourceInfo- Returns:
-
reloadPAMDataset
public boolean reloadPAMDataset() throws IOExceptionDescription copied from interface:PAMResourceInfoHints to reload the PAMDataset, if possible. By default, it's a no-op.- Specified by:
reloadPAMDatasetin interfacePAMResourceInfo- Returns:
- True if the PAM dataset has been reloaded, false if it was not possible or not implemented
- Throws:
IOException
-
-