Re: [Geotools-gt2-users] Work with GridCoverage2D

2008-04-25 Thread [EMAIL PROTECTED]
Martin, you're right. It seems as I overlooked that. I will try out the RandomIter. Thanks, Christian Am 24.04.2008 um 15:44 schrieb Martin Desruisseaux: > Isn't RandomIter close enough, especially its getSample(x,y,b) method? > > http://download.java.net/media/jai/javadoc/1.1.3/jai-apidocs/

Re: [Geotools-gt2-users] Work with GridCoverage2D

2008-04-24 Thread Martin Desruisseaux
In short (summarizing my last email) I recommand the JAI's RandomIter. Martin - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $10

Re: [Geotools-gt2-users] Work with GridCoverage2D

2008-04-24 Thread Martin Desruisseaux
[EMAIL PROTECTED] a écrit : > I need a matrix like object to do operations with the comlete grid. Isn't RandomIter close enough, especially its getSample(x,y,b) method? http://download.java.net/media/jai/javadoc/1.1.3/jai-apidocs/javax/media/jai/iterator/RandomIter.html#getSampleDouble(int,%20int

Re: [Geotools-gt2-users] Work with GridCoverage2D

2008-04-24 Thread System . out . println
Hi Martin, thanks for your suggestions. Unfortunately they are not really what I'm looking for. I need a matrix like object to do operations with the comlete grid. If I use > double[] values = null; > values = GridCoverage2D.evaluate(position, values); or > JAI iterators I'm as far es I'am

Re: [Geotools-gt2-users] Work with GridCoverage2D

2008-04-23 Thread Martin Desruisseaux
[EMAIL PROTECTED] a écrit : > Unfortunately I get an OutOfMemory: Java Heap Space exception, > althought my test grid is not really a large one (somewhat 2800 x > 2500 pixels). If I give Java more memory, the error does not disappear. > > Now my question: Is there I better solution to access a

[Geotools-gt2-users] Work with GridCoverage2D

2008-04-23 Thread [EMAIL PROTECTED]
Sorry - wrong mail address. Again Hello again, another question I have is how to work with GridCoverage2D objects. To do any operation with the grid values I tried to store them in an array: GridCoverage2D gridCoverage = (GridCoverage2D) grid; // grid is an Object /*System.out.printl