Jody Garnett ha scritto:
> So far uDig is  the major user of the SLD class. I am trying to migrate away 
> from it to a StyleBuilder :-(
> 
> Can you change the return type to a float (cannot remember which direction 
> automatic casting is allowed).
> 
> int width = SLD.width( stroke ); // does this work when SLD returns a float?

No, it will break. Compilation failure, you cannot cast float to
int automatically because you'd loose precision.
That is why I'm asking

Cheers
Andrea



-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to