Hi Rich and guys
Continuing testing this problem, i made another try using this usgs sample geotiff http://download.osgeo.org/geotiff/samples/usgs/o41078a5.tif
If i directly publish the geotiff file in geoserver using Geotiff Raster Data Source i get this preview (good)
https://i.imgsafe.org/5024bce.png
But if i ingest this geotiff in geowave and then try to publish the layer using
GeoWaveRasterFormat, i get this preview (bad), an error similar to the pictures in my previous email.
https://i.imgsafe.org/51b12c0.png
Given this sample case (
geotiff seems to be already in EPSG:4326 so i suppose there is no transform) i almost sure i misusing something in geowave but don't know what.
I'm ingesting the data with this code
String coverageName = "o41078a5.tif";
GridCoverage2D coverage = new GeoTiffReader(new File(
coverageName)).read(null);
final Map<String, String> metadata = new HashMap<String, String>();
RasterDataAdapter adapter = new RasterDataAdapter(coverageName, metadata, coverage, 256, true, new NoDataMergeStrategy());
PrimaryIndex index = new SpatialIndexBuilder().setAllTiers(true).createIndex();
try (IndexWriter indexWriter = geowaveDataStore.createIndexWriter(index, DataStoreUtils.DEFAULT_VISIBILITY)) {
indexWriter.write(adapter, coverage);
} catch (IOException e) {}
Is this wrong in anyway?
Regards,
PS: Great to know that there will be multiband support in the future Rich!