Hi,
    I have a question about rendering images.  What would cause a 8 MB jpg
file to take about 20 minutes to render, while a 5 MB TIF file renders in
about 1 second?  I am simply opening these in a JMapPane, while using a
StreamingRenderer and I'm kind of lost on how to increase rendering
performance for images.  Both files are georeferenced with projection and
world files.  Below is my code for inserting the images:

AbstractGridFormat format = GridFormatFinder.findFormat(imageFile);
readImage = format.getReader(imageFile);  //readImage is an
AbstractGridCoverage2DReader object

GridCoverage2D covLayer = null;
try {  
     covLayer = (GridCoverage2D) readImage.read(null);
} catch (Exception e) {
      e.printStackTrace();
}

mapContext.addLayer(covLayer,Style);


I know this is a pretty general question, but are there any image or JAI
experts that can point me in the right direction on how I can find out why
some files take so long to render, while other similarly sized images load
quickly?

Any help would be much appreciated

Thanks!

S Dille
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/StreamingRenderer-and-large-images-tp5342830p5342830.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to