| 
     
      
      
      From: César M. I. <ces...@gm...> - 2009-10-02 08:25:38
      
     
   | 
I need to process huge rasters with GeoTools, but it seems I've found
its limit :-(
INFO: Unable to find crs, continuing with default WGS4 CRS
Exception in thread "main" java.lang.IllegalArgumentException:
Dimensions (width=59000 height=46000) are too large
	at java.awt.image.SampleModel.<init>(SampleModel.java:112)
	at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128)
	at javax.media.jai.ComponentSampleModelJAI.<init>(ComponentSampleModelJAI.java:73)
	at javax.media.jai.FloatDoubleColorModel.createCompatibleSampleModel(FloatDoubleColorModel.java:1003)
	at it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader.initializeReader(AsciiGridsImageReader.java:344)
	at it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader.setInput(AsciiGridsImageReader.java:320)
	at org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:184)
	at org.geotools.gce.arcgrid.ArcGridFormat.getReader(ArcGridFormat.java:157)
	at org.geotools.gce.arcgrid.ArcGridFormat.getReader(ArcGridFormat.java:106)
	at etclusi.tests.gt.TestArcGrid.main(TestArcGrid.java:24)
The relevant code follows:
		File file = new File("d:\\bigtab\\mosaic.asc");
		ArcGridFormat agf = new ArcGridFormat();
		GridCoverageReader reader = agf.getReader(file);
Have you found a similar problem? Is there any workaround?
I see it is a problem with JAI... is there any chance to replace the
"limited" classes with another non-JAIs classes?
Regards,
César Martínez Izquierdo
-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   César Martínez Izquierdo
   GIS developer
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
   ETC-LUSI: http://etc-lusi.eionet.europa.eu/
   Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 |