Ok Jody,
Let me explain you what I get...
I can't find where is the problem... sorry (even with the debugger).
But I isolated some cases when it's working and some other cases when it's
failing.
You told me that "0.3", 0.3, 0.3f, 0.3d are the same. So far, i used only
0.3. So I tried the other three. "0.3" does not work either. But 0.3f and
0.3d are both working ! (I get a semi opaque filling !)
So if you find where the problem comes from, let me know !
Waiting for your email, I will try to do something else, because I spent two
days on that !!!
Thanks in advance (and thanks for what you already did !)
Thomas
2008/4/10, Jody Garnett <[EMAIL PROTECTED]>:
>
> Anaxa Gore wrote:
>
> > Hi Jody !
> > Happy to learn that I did not do anything wrong ! ;-)
> >
> About the only thing people do wrong is not read the javadocs; the second
> thing people do wrong is to believe the javadocs :-)
>
> > System.out.println("fill opacity = "+
> > ((Literal)ps.getGraphic().getMarks()[0].getFill().getOpacity()).getValue().getClass());
> >
> Cool - what should be done is this - fill.getOpacity().evaulate( feature,
> Double.class )
>
> I think if you change your System.out.println to match that you will see a
> double? (If you don't have a feature around you can use null for testing)
>
> > In order to know type of opacity from the SLD and directly from the
> > StyleBuilder... And there is a difference !
> > In the first case (SLD), I got : class java.lang.String
> > In the second one (StyleBuilder), I got : class java.lang.Double
> >
> > So it seems that "0.3", 0.3, 0.3f, 0.3d doesnt exactly the same. ;-)
> >
> Ah but it is the same thing to evaulate( Object, Class ) :-) So we need to
> hunt down where in the renderer some code needs to be fixed; perhaps you
> could step through with a debugger and tell me :-)
>
> > What do you think about that ? Is there a way to fix this problem ?
> >
> Yep; step through with a debugger and see which code is screwing up; I
> think I have fixed this on trunk already (at least I did for Color) ... but
> I am not sure what version of geotools you are using?
>
> Jody
>
-------------------------------------------------------------------------
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
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel