Gary W. Lucas ha scritto:
> Thank you Andrea.
> 
> You are correct, I am not passing the rendering hints to the renderer. 
> Although I read the javadoc enough to realize that the Renderer classes 
> /could /be given some rendering hints, it never occurred to me that they 
> /should/ be given the hints.  So little time, so much to learn :-)
> 
> I added the code snippet you suggested and it clears up the Exception.
> 
>     renderer = *new* StreamingRenderer(); 
>     HashMap<String, Boolean> rendererParams = *new* HashMap<String,
>     Boolean>(); 
>     rendererParams.put( "optimizedDataLoadingEnabled" , *new* Boolean(*
>     true*)); 
>     renderer .setRendererHints(rendererParams); 
> 
> Now you've got me thinking that there might be some more useful 
> rendering hints I should know about. Does anyone know of a good web page 
> that tells what hints to use and when?

Not really no, the only other hint is:

rendererParams.put("renderingBuffer", new Integer(20));

that instructs the renderer to expand the loading area by 20 pixels, in
this case, to catch features whose geometry lay outside of the current 
map, but whose symbolizer is so big that it shows anyways in the current
map. Anyways, if you don't have symbolizers that use attribute values,
streaming renderer will figure out the optimum value by itself, so you
usually don't need to set that hint.

> 
> In terms of the JAI problems, all I can say is that dealing with Eclipse 
> classloader issues are wearing me out :-(   I have tried everything I 
> could to make sure that the GeoToolsPlugIn I created is exporting the 
> JAI material. I haven't tried a buddy classloader yet because all the 
> documentation I've found for them to be, well, rather "half baked". I 
> guess I'll have to read some more. There may be somebody out there who 
> has written a web page explaining it with clarity, depth, and coherence, 
> but he's sure not writing in English (serves me right for not learning 
> another language when I had the chance).

Sigh... please do ask the uDig developers, they already have sorted this 
out. And yes, they do use the buddy classloader.

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to