RasterIngestRunner extends DownloadRunner { @Override protected void runInternal(final OperationParams params) throws Exception { try { processParameters(params); super.runInternal(params); } finally { for (final Writer writer : writerCache.values()) { if (writer != null) { writer.close(); } } } } RasterIngestRunner(
      final Landsat8BasicCommandLineOptions analyzeOptions,
      final Landsat8DownloadCommandLineOptions downloadOptions,
      final Landsat8RasterIngestCommandLineOptions ingestOptions,
      final List<String> parameters); static double getNoDataValueFromName(final String bandName); Landsat8BandConverterSpi getConverter(final String converterName);  }
@Test public void testIngest() throws Exception { JAIExt.initJAIEXT(); final Landsat8BasicCommandLineOptions analyzeOptions = new Landsat8BasicCommandLineOptions(); analyzeOptions.setNBestScenes(1); analyzeOptions.setCqlFilter( "BBOX(shape,-76.6,42.34,-76.4,42.54) and band='BQA' and sizeMB < 1"); analyzeOptions.setUseCachedScenes(true); analyzeOptions.setWorkspaceDir(Tests.WORKSPACE_DIR); final Landsat8DownloadCommandLineOptions downloadOptions = new Landsat8DownloadCommandLineOptions(); downloadOptions.setOverwriteIfExists(false); final Landsat8RasterIngestCommandLineOptions ingestOptions = new Landsat8RasterIngestCommandLineOptions(); ingestOptions.setRetainImages(true); ingestOptions.setCreatePyramid(false); ingestOptions.setScale(10); ingestOptions.setCreateHistogram(true); final RasterIngestRunner runner = new RasterIngestRunner( analyzeOptions, downloadOptions, ingestOptions, Arrays.asList("memorystore", "spatialindex")); final ManualOperationParams params = new ManualOperationParams(); params.getContext().put( ConfigOptions.PROPERTIES_FILE_CONTEXT, new File( RasterIngestRunnerTest.class.getClassLoader().getResource( "geowave-config.properties").toURI())); createIndices(params); runner.runInternal(params); try (CloseableIterator<Object> results = getStorePluginOptions(params).createDataStore().query(QueryBuilder.newBuilder().build())) { assertTrue("Store is not empty", results.hasNext()); } }