Class MultiLevelROIProviderFactory
- Object
-
- MultiLevelROIProviderFactory
-
- Direct Known Subclasses:
MultiLevelROIProviderMosaicFactory
public class MultiLevelROIProviderFactory extends Object
Factory class used for returning aMultiLevelROIProvider
based 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 String
SOURCE_PROPERTY
static String
TYPE_MULTIPLE_SIDECAR
static String
TYPE_RASTER
static String
TYPE_SIDECAR
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiLevelROIProviderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiLevelROIProvider
createFootprintProvider(File referenceFile)
Builds a footprint provider from file locationstatic MultiLevelROIProvider
createFootprintProvider(File referenceFile, Geometry granuleBounds)
Builds a footprint provider from file locationprotected static MultiLevelROIProvider
createProvider(FootprintGeometryProvider provider, Properties properties, Geometry imposedGranuleBounds)
Create theMultiLevelROIProvider
given aFootprintGeometryProvider
, footprint config properties (if any) and, optionally a Default GranuleBounds geometryprotected static Properties
initProperties(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 theMultiLevelROIProvider
given aFootprintGeometryProvider
, footprint config properties (if any) and, optionally a Default GranuleBounds geometry- Parameters:
provider
- theFootprintGeometryProvider
instance to be used to provide ROIs.properties
- an optionalProperties
instance containing footprints configuration.imposedGranuleBounds
- an optional default granuleBounds geometry
-
initProperties
protected static Properties initProperties(File configFile)
-
-