Hei,

ok.. I got a problem where I lack knowledge (and time) on solving the 
problem.

The problem:
One gets a null pointer exception if one tries to add a SIDLayer in OJ 
1.2. The null pointer comes from a non existing Blackboard inside 
WMSLayer. SIDLayer actually extends WMLayer (in this case 
WMSLayer.init() is called first - before any code in SIDLayer is 
executed.. so it looks like I can not solve the issue in SIDLayer 
itself, or can I?).

The cause seems to be, that the constructors of WMSLayer have been 
changed within the last half year (from revision 908 on).

I tried now the simple way of just using an old version of WMSLayer. But 
then I get the problem, that JUMP does not know how to render the 
SIDLayer (as it becomes a different instance of WMSLayer, i.e. the old 
WMSLayer that I would like to use has then a different class path... 
jippy). Ok.. a next step would be to add an extra renderer and factory, 
by simply copying and renaming the WMS-Renderer stuff. But.. here I 
stuck again.. I have no idea how to do the assignment between LayerType 
and Renderer (using the contentId stuff)... and this furthermore it is 
also a "stupid" solution. A better Idea would be to use Ole's Pirol 
solution or what Paul has written in the RenderingManager. But I simply 
lack background knowledge and willingness on how to use both approaches 
(every GUI/rendering stuff is far over my self-taught programming 
knowledge).

 So.. if anybody has suggestions... or is willing to fix it, then he is 
warmly welcome!!! ..or somenody writes a DOC on how to add a new image 
renderer....
I am looking forward to the day when I want to find out how to add the 
ImageJ stuff from Erwans team (which probably requires as well to look 
into the rendering stuff :(

time for dinner now
Stefan

PS: conclusion: MrSID Layers support is dumped since OJ1.2 (F) and 
future versions.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to