María José Pérez ha scritto:
> Hello! I cast my project from gt2.1 to 2.3 because I have several
> problem with geotools 2.1. Now when I render the map using the class:
> "StreamingRenderer", my source code:
>
> panel = new JMapPane();
> GTRenderer renderer = new StreamingRenderer();
> HashMap hints = new HashMap();
> hints.put("memoryPreloadingEnabled", Boolean.TRUE);
> renderer.setRendererHints ( hints );
>
> renderer.setContext(compositorMapa.getMap());
>
> panel.setRenderer(renderer);
> panel.setContext(TheMap);
> panel.setMapArea(TheMap.getAreaOfInterest());
Sigh... the memory preloading was a thing I did develop in a branch
a few years ago to show that streaming rendering could be just as
fast as J2DRenderer if you preloaded in memory and spatially indexed the
geometries.
Unfortunately, that was just a proof of concept and was not intended
to be ported to the production version of geotools, but someone
did port it anyways... Long story short, it works only for a single
layer, because that what I needed for that demo...
Now, fixing IndexedFeatureResults so that it can become a generally
usable class would not be that difficult, but I really have no
time at the moment to work on it. I can try to have a peek at
it during the weekend if you can wait.
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users