Hi Valerio,

> After some try, I fixed your example making the following replacement:
>
> // OLD:
>
>        ColorLookupFunction  colourFn  =  new
>  ColorLookupFunction(featureSource.getFeatures(),
>  filterFactory.property(attributeName));
>
> // NEW:
>
>        ExpressioncolourFn  =  filterFactory.property(attributeName);

So it looks like you have the colours as an attribute in your feature
data - is that correct ?  In that case it will be fine but the
intention of the original example, and Andrea's example, is to
allocate colours based on non-colour attributes (e.g. general numeric
data).

If you are only just getting familiar with Java as well as GeoTools
you are doing very well !

Michael

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to