Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2023-02-21 Thread Alexander Petkov
This issue is still plaguing me, after upgrading to Geoserver 2.22.1 Based on Daniele's explanation, I changed the code where GRIBFormat checks for FileFormat.GRIB, rather than just checking for extension. Attached is a diff with a proposed change in GRIBFormat. java My Geotiff files retain the

Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-24 Thread Simone Giannecchini
Daniele, shall we open an issue to track this strange behavior? Regards, Simone Giannecchini == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services for more information. == Ing. Simone Giannecchini @simogeo Founder/Director GeoSolutions S.A.S. Via di Montramito 3/A 5

Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-23 Thread Alexander Petkov
Hello Daniele: gdal_translate with '-co PROFILE=GeoTIFF' solves this problem. The default GDALGeoTIFF writes extra metadata tags, which seem to envoke the NetCDFImageReaderSpi Alex On 10/23/19, Daniele Romagnoli wrote: > Hi Alex, > Actually I was partially wrong. > > The GribFormat simply does

Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-23 Thread Daniele Romagnoli
Hi Alex, Actually I was partially wrong. The GribFormat simply does a filename check: https://github.com/geotools/geotools/blob/master/modules/plugin/coverage-multidim/grib/src/main/java/org/geotools/coverage/io/grib/GRIBFormat.java Is the NetCDFImageReaderSpi which actually does a real format c

Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-23 Thread Alexander Petkov
>> So my first question is: >> are you pretty sure that the files you are trying to mosaic are actually >> GeoTiffs and not NetCDFs/Gribs? >> Can you run a gdalinfo on one of them? gdalinfo confirms that all files are Geotiffs: for f in `find . -path './rtma2p5.201910*' -type f`;do gdalinfo ${f}

Re: [Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-23 Thread Alexander Petkov
Hi Daniele: Maybe I should find a way to strip all the GRIB metadata tags. == gdalinfo rtma2p5.20191011/rtma2p5.t02z.2dvaranl_ndfd.grb2_wexp Driver: GTiff/GeoTIFF Files: rtma2p5.20191011/rtma2p5.t02z.2dvaranl_ndfd.grb2_wexp Size is 2345, 1597 Coordinate System is: PROJCRS["unknown",

[Geoserver-users] Imagemosaic: enforcing SuggestedSPI

2019-10-23 Thread Alexander Petkov
Is it possible to force the use of a particular raster format through SuggestedSPI and SuggestedFormat parameters? I have the following config options in mosaic.properties: SuggestedSPI=it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi SuggestedFormat=org.geotools.gce.geotiff.GeoTiffForm