SLDStyleFactory assumes style expressions return the expected type without conversions --------------------------------------------------------------------------------------
Key: GEOT-2183 URL: http://jira.codehaus.org/browse/GEOT-2183 Project: GeoTools Issue Type: Bug Components: core render Reporter: Andrea Aime Assignee: Andrea Aime In many places there is code such as (Number) halo.getRadius().evaluate(feature) which works fine only if the expression was feeded with the proper data type. Sometimes this is not possible, the code should be smart enough to convert a "45" into a new Double(45). Adding null checks while I'm at it, and fallback values (basically extending usage of evalToFloat/evaltToDouble/evalToColor to the whole class) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel