Diego Fdez. Durán wrote:
> I don't know if this questions are addressed to me but...
>
> Now I'm doing this[1], passing the reader directly to the
> StreamingRenderer. I don't know how StreamingRenderer works internally.
> I could download the StreamingRenderer from the SVN and take a look if
> you want (but the original dev probably knows better than me how to
> improve the renderer). I need to get the optimal performance and I'll be
> glad if I can help in the improvement of GeoTools in the process.
>
> Thanks.
>   
So two observations:
1) This part looks to be slow; can you hard code the CRS for a moment 
and see if you get a speed up? Not sure a good way to get the CRS but 
possible we can ask Simone to store it in the metadata the reader can 
get access to?
> GridCoverage2D coverage;
>         try {
>             coverage = (GridCoverage2D) reader.read(null);
>         } catch (IOException ex) {
>             ex.printStackTrace();
>             return;
>         }
>
>         crs = coverage.getCoordinateReferenceSystem();
>         RenderedImage image = coverage.getRenderedImage();
2) This part looks fine
>         mapContext = new DefaultMapContext(crs);
>         mapContext.addLayer(reader, st);
>         renderer.setContext(mapContext);
But I want to know what happens next; when you use the renderer to draw 
(or paint) what are you painting onto?
Jody





-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to