Hello Simone,
I've tried with the new JAR, but it still fails:
02-oct-2009 11:35:57 org.geotools.gce.arcgrid.ArcGridReader
getCoordinateReferenceSystem
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)
Tell me if I can help in any way. I'm not used to GeoTools internals,
but it doesn't frighten me.
Best regards,
César
El día 2 de octubre de 2009 11:17, Simone Giannecchini
<[email protected]> escribió:
> It is not something you can do in your code, it must be done at a lower level.
> Do this, replace the imageio-ext-arcgrid jar from your project with
> the one attached and let meknow how it goes.
>
> Simone.
> -------------------------------------------------------
> Ing. Simone Giannecchini
> GeoSolutions S.A.S.
> Founder - Software Engineer
> Via Carignoni 51
> 55041 Camaiore (LU)
> Italy
>
> phone: +39 0584983027
> fax: +39 0584983027
> mob: +39 333 8128928
>
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://simboss.blogspot.com/
> http://www.linkedin.com/in/simonegiannecchini
>
> -------------------------------------------------------
>
>
>
> 2009/10/2 César Martínez Izquierdo <[email protected]>:
>> El día 2 de octubre de 2009 10:53, Simone Giannecchini
>> <[email protected]> escribió:
>>> Ciao Cesar,
>>> you ran into a limitation of how images are handle in java. Long story
>>> short width*height cannot be larger than the maximum positive Integer.
>>> However I found a workaround a while ago, I am not sure I ever applied
>>> it to the ascii arcgrid reader.
>>> Which version of geotools are you working with.
>>
>> Hello Simone,
>> now I'm trying with geotools 2.5.7 and I get the same error.
>> Any clue about this workaround?
>>
>> Thanks,
>>
>> César
>>
>>
>> --
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> César Martínez Izquierdo
>> GIS developer
>> - - - - - - - - - - - - - - - - - - - -
>> ETC-LUSI: http://etc-lusi.eionet.europa.eu/
>> Universitat Autònoma de Barcelona (SPAIN)
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
César Martínez Izquierdo
GIS developer
- - - - - - - - - - - - - - - - - - - -
ETC-LUSI: http://etc-lusi.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users