Class MultiLevelROIProviderFactory
- Object
-
- MultiLevelROIProviderFactory
-
- Direct Known Subclasses:
MultiLevelROIProviderMosaicFactory
public class MultiLevelROIProviderFactory extends Object
Factory class used for returning aMultiLevelROIProviderbased on the input footprint properties and files- Author:
- Andrea Aime, GeoSolutions, Nicola Lagomarsini, GeoSolutions, Daniele Romagnoli, GeoSolutions
-
-
Field Summary
Fields Modifier and Type Field Description static StringSOURCE_PROPERTYstatic StringTYPE_MULTIPLE_SIDECARstatic StringTYPE_RASTERstatic StringTYPE_SIDECAR
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiLevelROIProviderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiLevelROIProvidercreateFootprintProvider(File referenceFile)Builds a footprint provider from file locationstatic MultiLevelROIProvidercreateFootprintProvider(File referenceFile, Geometry granuleBounds)Builds a footprint provider from file locationprotected static MultiLevelROIProvidercreateProvider(FootprintGeometryProvider provider, Properties properties, Geometry imposedGranuleBounds)Create theMultiLevelROIProvidergiven aFootprintGeometryProvider, footprint config properties (if any) and, optionally a Default GranuleBounds geometryprotected static PropertiesinitProperties(File configFile)
-
-
-
Field Detail
-
SOURCE_PROPERTY
public static final String SOURCE_PROPERTY
- See Also:
- Constant Field Values
-
TYPE_SIDECAR
public static final String TYPE_SIDECAR
- See Also:
- Constant Field Values
-
TYPE_RASTER
public static final String TYPE_RASTER
- See Also:
- Constant Field Values
-
TYPE_MULTIPLE_SIDECAR
public static final String TYPE_MULTIPLE_SIDECAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFootprintProvider
public static MultiLevelROIProvider createFootprintProvider(File referenceFile)
Builds a footprint provider from file location- Parameters:
referenceFile- the reference file.
-
createFootprintProvider
public static MultiLevelROIProvider createFootprintProvider(File referenceFile, Geometry granuleBounds)
Builds a footprint provider from file location- Parameters:
referenceFile- It can be: - a folder containing the footprint config files (if any) OR the footprint itself. - the data file for which we are looking for a footprint.granuleBounds- The optional granuleBounds geometry. if not null, it will be used as data's reference geometry.
-
createProvider
protected static MultiLevelROIProvider createProvider(FootprintGeometryProvider provider, Properties properties, Geometry imposedGranuleBounds)
Create theMultiLevelROIProvidergiven aFootprintGeometryProvider, footprint config properties (if any) and, optionally a Default GranuleBounds geometry- Parameters:
provider- theFootprintGeometryProviderinstance to be used to provide ROIs.properties- an optionalPropertiesinstance containing footprints configuration.imposedGranuleBounds- an optional default granuleBounds geometry
-
initProperties
protected static Properties initProperties(File configFile)
-
-