public class GeoToolsRasterDataStoreIngestPlugin extends Object implements LocalFileIngestPlugin<org.opengis.coverage.grid.GridCoverage>
Constructor and Description |
---|
GeoToolsRasterDataStoreIngestPlugin() |
GeoToolsRasterDataStoreIngestPlugin(RasterOptionProvider optionProvider) |
Modifier and Type | Method and Description |
---|---|
DataTypeAdapter<org.opengis.coverage.grid.GridCoverage>[] |
getDataAdapters(String globalVisibility)
Get all writable adapters used by this plugin
|
String[] |
getFileExtensionFilters()
Gets a list of file extensions that this plugin supports.
|
Index[] |
getRequiredIndices()
Get an array of indices that are required by this ingest implementation.
|
Class<? extends CommonIndexValue>[] |
getSupportedIndexableTypes()
return a set of classes that can be indexed by this data adapter provider, used for
compatibility checking with an index provider
|
void |
init(URL baseDirectory)
Initialize the plugin and give it the base directory that is provided by the user.
|
boolean |
supportsFile(URL file)
This method will be called for every file that matches the given extensions.
|
CloseableIterator<GeoWaveData<org.opengis.coverage.grid.GridCoverage>> |
toGeoWaveData(URL input,
String[] indexNames,
String globalVisibility)
Convert from an expected input format to a data format that can be directly ingested into
GeoWave
|
public GeoToolsRasterDataStoreIngestPlugin()
public GeoToolsRasterDataStoreIngestPlugin(RasterOptionProvider optionProvider)
public String[] getFileExtensionFilters()
LocalPluginBase
getFileExtensionFilters
in interface LocalPluginBase
public void init(URL baseDirectory)
LocalPluginBase
init
in interface LocalPluginBase
baseDirectory
- The base directory provided as a command-line argument (if the argument is a file,
the base directory given will be its parent directory).public boolean supportsFile(URL file)
LocalPluginBase
supportsFile
in interface LocalPluginBase
file
- The file to determine if this plugin supports for ingestionpublic CloseableIterator<GeoWaveData<org.opengis.coverage.grid.GridCoverage>> toGeoWaveData(URL input, String[] indexNames, String globalVisibility)
IngestPluginBase
toGeoWaveData
in interface IngestPluginBase<URL,org.opengis.coverage.grid.GridCoverage>
input
- The expected input.indexNames
- The set of index IDs specified via a commandline argument (this is typically
either the default spatial index or default spatial-temporal index)globalVisibility
- If on the command-line the user specifies a global visibility to write
to the visibility column in GeoWave, it is passed along here. It is assumed that this is
the same visibility string that will be passed to DataAdapterProvider.getDataAdapters()public DataTypeAdapter<org.opengis.coverage.grid.GridCoverage>[] getDataAdapters(String globalVisibility)
DataAdapterProvider
getDataAdapters
in interface DataAdapterProvider<org.opengis.coverage.grid.GridCoverage>
globalVisibility
- If on the command-line the user specifies a global visibility to write
to the visibility column in GeoWave, it is passed along here. It is assumed that this is
the same visibility string that will be passed to IngestPluginBase.toGeoWaveData()public Index[] getRequiredIndices()
IndexProvider
getRequiredIndices
in interface IndexProvider
public Class<? extends CommonIndexValue>[] getSupportedIndexableTypes()
DataAdapterProvider
getSupportedIndexableTypes
in interface DataAdapterProvider<org.opengis.coverage.grid.GridCoverage>
Copyright © 2013–2020. All rights reserved.