Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-08 Thread Simone Giannecchini
bject: Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects Hi Andrea/Simone/Martin, I threw together a quick example that reproduces the problem. It took 159 seconds to produce the image. Thanks again for the help. Steve import java.awt.Color; import java.awt.Graphics2

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Steve.Ansari
OTECTED] > Cc: Simone ; geotools-gt2-users@lists.sourceforge.net > Sent: Monday, February 05, 2007 3:26 PM > Subject: Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects > > > Ha!!! > > I tried with GT-2.3.1-SNAPSHOT-rev24168 and it works GREAT! > > I added some time

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Simone Giannecchini
e encoder for png which should make things a bit faster anyway. Let us know if you have more problems. Regards, Simone. - Original Message - From: "Steve.Ansari" <[EMAIL PROTECTED]> To: "Simone Giannecchini" <[EMAIL PROTECTED]> Cc: Sent: Monday, February 05, 200

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Steve.Ansari
ster than on windows xp. One advice. please install the JAI ImageIO tools package since it ships with a nice native encoder for png which should make things a bit faster anyway. Let us know if you have more problems. Regards, Simone. - Original Message - From: "Steve.Ansari

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Andrea Antonello
gt; Simone. > > > - Original Message - > From: "Steve.Ansari" <[EMAIL PROTECTED]> > To: "Simone Giannecchini" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, February 05, 2007 2:59 PM > Subject: Re: [Geotools-gt2-users] Slow rendering of Gri

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Simone
more problems. Regards, Simone. - Original Message - From: "Steve.Ansari" <[EMAIL PROTECTED]> To: "Simone Giannecchini" <[EMAIL PROTECTED]> Cc: Sent: Monday, February 05, 2007 2:59 PM Subject: Re: [Geotools-gt2-users] Slow rendering of GridCoverage objec

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Steve.Ansari
Hi Simone/Andrea, I'm using: Java jre1.5.0_04 JAI installed from: jai-1_1_3-lib-windows-i586-jre.exe ImageIO from standard Java API - no native installs I isolated the slowness to this line in GridCoverageRenderer: graphics.drawRenderedImage(finalImage, cloneFinalWorldToGrid); After

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Simone Giannecchini
Ciao Andrea, I doubt it depends on differences between 2.3.0 and the actual code, but I want to check. Since the timed code contains a write operation performed using ImageIO directly it might be and old version of ImageIO giving problems, or the absence of the native codec for PNGs, or difference

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Andrea Aime
Steve.Ansari ha scritto: > Hi Andrea/Simone/Martin, > > I threw together a quick example that reproduces the problem. It took > 159 seconds to produce the image. Steve, can you try again using the 2.3.x nightly builds at: http://www.geo-solutions.it/gt2_nightly/ Cheers Andrea

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-05 Thread Andrea Aime
Simone Giannecchini ha scritto: > Ciao Steve, > I need a couple more info about your platform: > >> java version >> os >> JAI and ImageIO version > > > I ran your example as it was (well, to be honest I removed the line > where you were showing the created coverage) and I got the following > e

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Dieter Mach
Hello, I had the same problem some month ago (see my posting from Dec 16, 2006) and still didn't find a solution. While rendering, the memory usage increases continuously. If it would be helpful, I could send a detailed stack trace showing where the renderer spends that much time. A workaround

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Steve.Ansari
Hi Andrea/Simone/Martin, I threw together a quick example that reproduces the problem. It took 159 seconds to produce the image. Thanks again for the help. Steve import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Andrea Aime
Steve.Ansari ha scritto: > Hi Andrea, > > I'm manually creating the GridCoverage from a WritableRaster using: > > GridCoverage2D gc = gcFactory.create("My colored coverage", raster, > envelope, minValues, maxValues, null, new Color[][]{colors}, > null); Ouch... it shouldn't be

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Steve.Ansari
Hi Andrea, I'm manually creating the GridCoverage from a WritableRaster using: GridCoverage2D gc = gcFactory.create("My colored coverage", raster, envelope, minValues, maxValues, null, new Color[][]{colors}, null); Thanks for the help! Steve Andrea Aime wrote: Steve.Ansar

Re: [Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Andrea Aime
Steve.Ansari ha scritto: > Hello all, > > I'm using StreamingRenderer to draw a MapContext with the 2.3.0 release, > however it is VERY slow when drawing a GridCoverage layer. I've > isolated the problem to: > > graphics.drawRenderedImage(finalImage, cloneFinalWorldToGrid); > > in

[Geotools-gt2-users] Slow rendering of GridCoverage objects

2007-02-04 Thread Steve.Ansari
Hello all, I'm using StreamingRenderer to draw a MapContext with the 2.3.0 release, however it is VERY slow when drawing a GridCoverage layer. I've isolated the problem to: graphics.drawRenderedImage(finalImage, cloneFinalWorldToGrid); in GridCoverageRenderer ( http://svn.geotool