Hi

I want to read a geotiff file in a Spring Boot 3 application but get some
errors:

"java.lang.nullpointerexception: Cannot invoke
"javax.xml.bind.JAXBContext.createUnmarshaller()" because
"it.geosolutions.imageioimpl.plugins.tiff.gdal.GDALMetadataParser.CONTEXT"
is null"

Code is simple:

File file = new File("swissalti3d_2019_2614-1258_0.5_2056_5728.tif");

GeoTiffReader reader = new GeoTiffReader(file);
GridCoverage2D coverage = reader.read(null);
System.out.println(coverage.getEnvelope());

Is there a way to disable the gdal meta data parsing? I think there is some
clash with Spring Boot 3 using jakarta instead of javax.

regards
Stefan
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to