What are the geotiff limitations of geotools?

المشرف العام

Administrator
طاقم الإدارة
I'm trying to process globcover, which is a .tif file of 374mb. Running the following code:

File tiffFile = new File("C:\\Users\\CAA\\Desktop\\test.tif"); GeoTiffReader reader = new GeoTiffReader(tiffFile); grid =reader.read(null);gridData = grid.getRenderedImage().getData(); //row 32I get the following error:

java.lang.IllegalArgumentException: Requested region cannot be represented by a single Raster.at javax.media.jai.PlanarImage.getData(PlanarImage.java:2163)at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)at de.myapplication.de.myapplicatoin.GeoTiff.initTif(GeoTiff.java:32)After playing around a bit with QGis and it's Clipper tool i noticed that if i extract a smaller area, the reader works as intended. If i extract huger areas (i.e. entire europe or the entire world) i get the error again. Maybe it's just correlation and not causation, but this leads me to believe that there is somewhere a limit inside the reader. But what is the limit?



أكثر...
 
أعلى