Here's the output of astifftagViewer: ImageWidth (1 Short): 5820 ImageLength (1 Short): 4060 BitsPerSample (4 Short): 8, 8, 8, 8 Compression (1 Short): Uncompressed Photometric (1 Short): RGB ImageDescription (12 ASCII): B2,B1,B0,B3 StripOffsets (4 Long): 8, 23629208, 47258408, 70887608 Orientation (1 Short): TopLeft SamplesPerPixel (1 Short): 4 RowsPerStrip (1 Short): 4060 StripByteCounts (4 Long): 23629200, 23629200, 23629200, 23629200 PlanarConfig (1 Short): Seperate DateTime (31 ASCII): 2020-09-29T12:49:12.484556477Z SampleFormat (4 Short): 1, 1, 1, 1 33550 (3 Double): 33922 (6 Double): 34735 (28 Short): 1, 1, 0, 6, 1024, 0, 1, 2, 1025, 0, 1, 1,... 34737 (27 ASCII): Corrected Satellite Data||
If I drop the fourth band and output a geotiff I'm able to load the data as an ImageMosaic. On the other hand if I output a JP2 with the OpenJpg driver I have the same kind of error. So I may have something off or missing in the tags I'm making progress on this , thank you so much! Nicolas Le mer. 30 sept. 2020 à 12:31, Daniele Romagnoli < daniele.romagn...@geo-solutions.it> a écrit : > Hi Nicolas, > I suspect the error reported by GDAL is now affecting the GeoTIFF loading. > *TIFFReadDirectory:Sum of Photometric type-related color channels and > ExtraSamples doesn't match SamplesPerPixel * > > Which seems explaining the error reported by the low level TIFF reader: > > Caused by: java.lang.IllegalArgumentException: bandOffsets.length is wrong! > at > javax.imageio.ImageTypeSpecifier$Interleaved.<init>(ImageTypeSpecifier.java:286 > > > GeoServer 2.12 was 3 years old. > I think that, in the meantime, the TIFF Reader has become more conform to > the specification in order to deal with RGBA vs RGB-Extraband (I.e. RGB-IR > , RGB-NIR or whatever) so that it won't use the 4th band as > alpha/transparency if it's not a real alpha. > > It seems like your GeoTIFF is reporting some conflicting tags > (extraSamples, photometric, samplesPerPixel). > > It should be something like this: > SamplesPerPixel = 4 > Photometric = RGB > ExtraSamples = 0 > > Where, quoting from the TIFF specification: > > ExtraSamples > Description of extra components. > Tag = 338 (152.H) > > 0 = Unspecified data > 1 = Associated alpha data (with pre-multiplied color) > 2 = Unassociated alpha data > > I suspect your file has missing ExtraSamples TAG or it is reporting > SamplePerPixel=3. > Could you double check that with some tool? (i.e. AsTIFFTagViewer on > Windows). > Please, let us know the result of the investigation. > > Regards, > Daniele > > > > On Wed, Sep 30, 2020 at 10:52 AM Nicolas Raggueneau < > nicolas.ragguen...@gmail.com> wrote: > >> Hi Daniel, Here's is the output of gdalinfo >> >> gdalinfo >> c:\users\administrator\Downloads\embiez\IMG_PHR1B_PMS_202006171049476_ORT_07535460-5e49-4b88-cb44-ba0fade9f368-001_R1C1.TIF >> ERROR 1: Can't load requested DLL: >> C:\USers\Administrator\Downloads\gdal\bin\gdal\plugins\gdal_GEOR.dll >> 126: The specified module could not be found. >> >> ERROR 1: Can't load requested DLL: >> C:\USers\Administrator\Downloads\gdal\bin\gdal\plugins\gdal_GEOR.dll >> 126: The specified module could not be found. >> >> ERROR 1: Can't load requested DLL: >> C:\USers\Administrator\Downloads\gdal\bin\gdal\plugins\ogr_OCI.dll >> 126: The specified module could not be found. >> >> ERROR 1: Can't load requested DLL: >> C:\USers\Administrator\Downloads\gdal\bin\gdal\plugins\ogr_OCI.dll >> 126: The specified module could not be found. >> >> Warning 1: TIFFReadDirectory:Sum of Photometric type-related color >> channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color >> channels as ExtraSamples. >> Driver: GTiff/GeoTIFF >> Files: >> c:\users\administrator\Downloads\embiez\IMG_PHR1B_PMS_202006171049476_ORT_07535460-5e49-4b88-cb44-ba0fade9f368-001_R1C1.TIF >> Size is 5820, 4060 >> Coordinate System is: >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]] >> Origin = (5.770462962962964,43.085185185185196) >> Pixel Size = (0.000004629629630,-0.000004629629630) >> Metadata: >> AREA_OR_POINT=Area >> TIFFTAG_DATETIME=2020-09-29T12:49:12.484556477Z >> TIFFTAG_IMAGEDESCRIPTION=B2,B1,B0,B3 >> Image Structure Metadata: >> INTERLEAVE=BAND >> Corner Coordinates: >> Upper Left ( 5.7704630, 43.0851852) ( 5d46'13.67"E, 43d 5' 6.67"N) >> Lower Left ( 5.7704630, 43.0663889) ( 5d46'13.67"E, 43d 3'59.00"N) >> Upper Right ( 5.7974074, 43.0851852) ( 5d47'50.67"E, 43d 5' 6.67"N) >> Lower Right ( 5.7974074, 43.0663889) ( 5d47'50.67"E, 43d 3'59.00"N) >> Center ( 5.7839352, 43.0757870) ( 5d47' 2.17"E, 43d 4'32.83"N) >> Band 1 Block=5820x1 Type=Byte, ColorInterp=Red >> Band 2 Block=5820x1 Type=Byte, ColorInterp=Green >> Band 3 Block=5820x1 Type=Byte, ColorInterp=Blue >> Band 4 Block=5820x1 Type=Byte, ColorInterp=Undefined >> >> I have some errors with the installation of gdal I'm using, could it >> cause the error in Geoserver? >> Nicolas >> >> >> Le mer. 30 sept. 2020 à 09:25, Daniele Romagnoli < >> daniele.romagn...@geo-solutions.it> a écrit : >> >>> Hi Nicolas, >>> Could you please run a gdalinfo command on one of the problematic >>> GeoTiffs? >>> >>> I see this: >>> >>> Caused by: org.geotools.data.DataSourceException: bandOffsets.length is >>> wrong! >>> at >>> org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:497) >>> at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:250) >>> ... 164 more >>> Caused by: java.lang.IllegalArgumentException: bandOffsets.length is wrong! >>> at >>> javax.imageio.ImageTypeSpecifier$Interleaved.<init>(ImageTypeSpecifier.java:286 >>> >>> >>> Please, let us know. >>> >>> Daniele >>> >>> >>> On Tue, Sep 29, 2020 at 4:56 PM Nicolas Raggueneau < >>> nicolas.ragguen...@gmail.com> wrote: >>> >>>> I'm running Geoserver with my windows account (not as service), the >>>> same account that I've used to create the folder in data and copy >>>> the files, so I think it's good. >>>> Besides it's working with 2.12. >>>> >>>> I am suspecting either something changed in Image readers or I have a >>>> dll conflict. I've the same kind of error when I try to make a geotiff >>>> store >>>> >>>> Nicolas >>>> >>>> >>>> Le mar. 29 sept. 2020 à 16:36, Russ Hore <r...@russ-hore.co.uk> a >>>> écrit : >>>> >>>>> Can you check the user that is running GeoServer (tomcat?) has read >>>>> permission to the folder containing the files. >>>>> >>>>> I have been caught out that way before where I have created a folder >>>>> as a normal user but the tomcat user does not have read permissions. >>>>> >>>>> Russ >>>>> >>>>> On 29 Sep 2020, at 14:30, Nicolas Raggueneau < >>>>> nicolas.ragguen...@gmail.com> wrote: >>>>> >>>>> Hi Daniele, thank you for your support. >>>>> Here is an extract of the log, starting at the creation of the store. >>>>> It is working in 2.12 >>>>> >>>>> Best regards, >>>>> Nicolas >>>>> >>>>> Le mar. 29 sept. 2020 à 15:06, Daniele Romagnoli < >>>>> daniele.romagn...@geo-solutions.it> a écrit : >>>>> >>>>>> >>>>>> Hi Nicolas, >>>>>> you could try raising the logging level to GEOTOOLS_DEVELOPER_LOGGING. >>>>>> From the GeoServer UI, on the left menu, go to >>>>>> Settings->Global->Logging settings. >>>>>> >>>>>> Then retry and let see if the Logs contain some additional >>>>>> information. >>>>>> >>>>>> Please, let us know. >>>>>> Regards, >>>>>> Daniele >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Sep 29, 2020 at 2:58 PM Nicolas Raggueneau < >>>>>> nicolas.ragguen...@gmail.com> wrote: >>>>>> >>>>>>> Hi! >>>>>>> >>>>>>> ImageMosaic creation fails when I create a store. Product is a >>>>>>> Pleiades mosaic. On Geoserver 2.12 store and layer creation are >>>>>>> straightforward. >>>>>>> >>>>>>> On 2.16.5 and 2.18 it produces this error : >>>>>>> Could not list layers for this store, an error occurred retrieving >>>>>>> them: Failed to create reader from file:data/cassis/IMG_PHR1B_PMS_001 >>>>>>> and >>>>>>> hints Hints: REPOSITORY = >>>>>>> org.geoserver.catalog.CatalogRepository@3a79b5cb >>>>>>> EXECUTOR_SERVICE = >>>>>>> java.util.concurrent.ThreadPoolExecutor@1d70ca68[Running, >>>>>>> pool size = 0, active threads = 0, queued tasks = 0, completed tasks = >>>>>>> 0] >>>>>>> System defaults: GRID_COVERAGE_FACTORY = GridCoverageFactory >>>>>>> TILE_ENCODING >>>>>>> = null STYLE_FACTORY = StyleFactoryImpl FORCE_AXIS_ORDER_HONORING = http >>>>>>> LENIENT_DATUM_SHIFT = true COMPARISON_TOLERANCE = 1.0E-8 >>>>>>> FEATURE_FACTORY = >>>>>>> org.geotools.feature.LenientFeatureFactoryImpl@4ebea12c >>>>>>> FORCE_LONGITUDE_FIRST_AXIS_ORDER = true FILTER_FACTORY = >>>>>>> FilterFactoryImpl >>>>>>> >>>>>>> Environnement >>>>>>> - Windows 10 pro >>>>>>> - java x64 1.8.0_191 >>>>>>> - gdal plugin >>>>>>> >>>>>>> What could I test to troubleshoot this? >>>>>>> >>>>>>> Best Regards, >>>>>>> Nicolas >>>>>>> _______________________________________________ >>>>>>> Geoserver-users mailing list >>>>>>> >>>>>>> Please make sure you read the following two resources before posting >>>>>>> to this list: >>>>>>> - Earning your support instead of buying it, but Ian Turton: >>>>>>> http://www.ianturton.com/talks/foss4g.html#/ >>>>>>> - The GeoServer user list posting guidelines: >>>>>>> http://geoserver.org/comm/userlist-guidelines.html >>>>>>> >>>>>>> If you want to request a feature or an improvement, also see this: >>>>>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>>>>>> >>>>>>> >>>>>>> Geoserver-users@lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Daniele Romagnoli >>>>>> == >>>>>> GeoServer Professional Services from the experts! Visit >>>>>> http://goo.gl/it488V for more information. >>>>>> == >>>>>> >>>>>> Ing. Daniele Romagnoli >>>>>> Senior Software Engineer >>>>>> >>>>>> GeoSolutions S.A.S. >>>>>> Via di Montramito 3/A >>>>>> 55054 Massarosa (LU) >>>>>> Italy >>>>>> phone: +39 0584 962313 >>>>>> fax: +39 0584 1660272 >>>>>> >>>>>> http://www.geo-solutions.it >>>>>> http://twitter.com/geosolutions_it >>>>>> >>>>>> ------------------------------------------------------- >>>>>> >>>>>> Con riferimento alla normativa sul trattamento dei dati personali >>>>>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati >>>>>> “GDPR”), >>>>>> si precisa che ogni circostanza inerente alla presente email (il suo >>>>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è >>>>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il >>>>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra >>>>>> operazione è illecita. Le sarei comunque grato se potesse darmene >>>>>> notizia. >>>>>> >>>>>> This email is intended only for the person or entity to which it is >>>>>> addressed and may contain information that is privileged, confidential or >>>>>> otherwise protected from disclosure. We remind that - as provided by >>>>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of >>>>>> this >>>>>> e-mail or the information herein by anyone other than the intended >>>>>> recipient is prohibited. If you have received this email by mistake, >>>>>> please >>>>>> notify us immediately by telephone or e-mail. >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Daniele Romagnoli >>>>>> == >>>>>> GeoServer Professional Services from the experts! Visit >>>>>> http://goo.gl/it488V for more information. >>>>>> == >>>>>> >>>>>> Ing. Daniele Romagnoli >>>>>> Senior Software Engineer >>>>>> >>>>>> GeoSolutions S.A.S. >>>>>> Via di Montramito 3/A >>>>>> 55054 Massarosa (LU) >>>>>> Italy >>>>>> phone: +39 0584 962313 >>>>>> fax: +39 0584 1660272 >>>>>> >>>>>> http://www.geo-solutions.it >>>>>> http://twitter.com/geosolutions_it >>>>>> >>>>>> ------------------------------------------------------- >>>>>> >>>>>> Con riferimento alla normativa sul trattamento dei dati personali >>>>>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati >>>>>> “GDPR”), >>>>>> si precisa che ogni circostanza inerente alla presente email (il suo >>>>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è >>>>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il >>>>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra >>>>>> operazione è illecita. Le sarei comunque grato se potesse darmene >>>>>> notizia. >>>>>> >>>>>> This email is intended only for the person or entity to which it is >>>>>> addressed and may contain information that is privileged, confidential or >>>>>> otherwise protected from disclosure. We remind that - as provided by >>>>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of >>>>>> this >>>>>> e-mail or the information herein by anyone other than the intended >>>>>> recipient is prohibited. If you have received this email by mistake, >>>>>> please >>>>>> notify us immediately by telephone or e-mail. >>>>>> _______________________________________________ >>>>>> Geoserver-users mailing list >>>>>> >>>>>> Please make sure you read the following two resources before posting >>>>>> to this list: >>>>>> - Earning your support instead of buying it, but Ian Turton: >>>>>> http://www.ianturton.com/talks/foss4g.html#/ >>>>>> - The GeoServer user list posting guidelines: >>>>>> http://geoserver.org/comm/userlist-guidelines.html >>>>>> >>>>>> If you want to request a feature or an improvement, also see this: >>>>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>>>>> >>>>>> >>>>>> Geoserver-users@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>>>>> >>>>> <logextract.txt>_______________________________________________ >>>>> Geoserver-users mailing list >>>>> >>>>> Please make sure you read the following two resources before posting >>>>> to this list: >>>>> - Earning your support instead of buying it, but Ian Turton: >>>>> http://www.ianturton.com/talks/foss4g.html#/ >>>>> - The GeoServer user list posting guidelines: >>>>> http://geoserver.org/comm/userlist-guidelines.html >>>>> >>>>> If you want to request a feature or an improvement, also see this: >>>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>>>> >>>>> >>>>> Geoserver-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>>>> >>>>> >>>>> _______________________________________________ >>>> Geoserver-users mailing list >>>> >>>> Please make sure you read the following two resources before posting to >>>> this list: >>>> - Earning your support instead of buying it, but Ian Turton: >>>> http://www.ianturton.com/talks/foss4g.html#/ >>>> - The GeoServer user list posting guidelines: >>>> http://geoserver.org/comm/userlist-guidelines.html >>>> >>>> If you want to request a feature or an improvement, also see this: >>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>>> >>>> >>>> Geoserver-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>>> >>> >>> >>> -- >>> Regards, >>> Daniele Romagnoli >>> == >>> GeoServer Professional Services from the experts! Visit >>> http://goo.gl/it488V for more information. >>> == >>> >>> Ing. Daniele Romagnoli >>> Senior Software Engineer >>> >>> GeoSolutions S.A.S. >>> Via di Montramito 3/A >>> 55054 Massarosa (LU) >>> Italy >>> phone: +39 0584 962313 >>> fax: +39 0584 1660272 >>> >>> http://www.geo-solutions.it >>> http://twitter.com/geosolutions_it >>> >>> ------------------------------------------------------- >>> >>> Con riferimento alla normativa sul trattamento dei dati personali (Reg. >>> UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si >>> precisa che ogni circostanza inerente alla presente email (il suo >>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è >>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il >>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra >>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia. >>> >>> This email is intended only for the person or entity to which it is >>> addressed and may contain information that is privileged, confidential or >>> otherwise protected from disclosure. We remind that - as provided by >>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this >>> e-mail or the information herein by anyone other than the intended >>> recipient is prohibited. If you have received this email by mistake, please >>> notify us immediately by telephone or e-mail. >>> >> > > -- > Regards, > Daniele Romagnoli > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Daniele Romagnoli > Senior Software Engineer > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > Italy > phone: +39 0584 962313 > fax: +39 0584 1660272 > > http://www.geo-solutions.it > http://twitter.com/geosolutions_it > > ------------------------------------------------------- > > Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE > 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si > precisa che ogni circostanza inerente alla presente email (il suo > contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è > riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il > messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra > operazione è illecita. Le sarei comunque grato se potesse darmene notizia. > > This email is intended only for the person or entity to which it is > addressed and may contain information that is privileged, confidential or > otherwise protected from disclosure. We remind that - as provided by > European Regulation 2016/679 “GDPR” - copying, dissemination or use of this > e-mail or the information herein by anyone other than the intended > recipient is prohibited. If you have received this email by mistake, please > notify us immediately by telephone or e-mail. >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users