Ian, I figured out the issue. It was the way the tiff file was created. Thanks Nils
On Fri, Jul 8, 2022 at 6:51 AM Nils Henriksen <nilskarl...@gmail.com> wrote: > Ian, > Thanks for the response. The code that fails is: > > GeoTiffReader reader = new GeoTiffReader(_geoTiffFile, new > Hints(Hits.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)); > > Unfortunately I cannot provide the raster file it fails on as it is > protected. > > I know that most likely hinders the investigation. Maybe I am stuck. > > Nils > > On Fri, Jul 8, 2022 at 2:55 AM Ian Turton <ijtur...@gmail.com> wrote: > >> We would need to see some code and an example of the raster that is >> generating the error to have any chance of saying what is wrong. >> >> Ian >> >> On Thu, 7 Jul 2022 at 21:06, Nils Henriksen <nilskarl...@gmail.com> >> wrote: >> > >> > I am trying to get past an error when creating a new GeoTiffReader >> object >> > >> > I get a IllegalArgumentException: bandoffsets.length is wrong exception >> > at >> javax.imageio.ImageTypeSpecifier$Interleaved.<init>(ImageTypeSpecifier.java:286) >> ~[?:?] >> > >> > Any ideas on how to fix this? >> > >> > Nils >> > _______________________________________________ >> > GeoTools-GT2-Users mailing list >> > GeoTools-GT2-Users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> >> >> -- >> Ian Turton >> >
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users