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