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
FileResourceInfo
implementation 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)
FileGroupProvider
providing resource content.PAMDataset
getPAMDataset()
Returns a PAMDataset for the resource, if available, or null, otherwiseboolean
reloadPAMDataset()
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 theRasterManager
instance 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:FileResourceInfo
FileGroupProvider
providing resource content.- Specified by:
getFiles
in interfaceFileGroupProvider
- Specified by:
getFiles
in interfaceFileResourceInfo
- Returns:
- A
FileGroupProvider
instance providing resource content
-
getPAMDataset
public PAMDataset getPAMDataset()
Description copied from interface:PAMResourceInfo
Returns a PAMDataset for the resource, if available, or null, otherwise- Specified by:
getPAMDataset
in interfacePAMResourceInfo
- Returns:
-
reloadPAMDataset
public boolean reloadPAMDataset() throws IOException
Description copied from interface:PAMResourceInfo
Hints to reload the PAMDataset, if possible. By default, it's a no-op.- Specified by:
reloadPAMDataset
in interfacePAMResourceInfo
- Returns:
- True if the PAM dataset has been reloaded, false if it was not possible or not implemented
- Throws:
IOException
-
-