Okay next suggestion (helpful this time). uDig actually uses a subclass of SLD (called SLDs ... sigh).
I will just copy the methods over and break that link; leaving GeoTools free to change. As I said I would like to migrate away from using this class. Now that still may not be a useful suggestion; any other ideas? Jody On 03/03/2010, at 8:49 PM, Andrea Aime wrote: > 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
