Hi John, There is now a new ShapeLab example for GeoTools 2.6.0 that avoids deprecated methods:
http://geotools.org/examples/stylelab.html Sorry that the old one is still up to confuse you :-( > What I would like to do is find an easy and supported way of filling > individual shapes in the shapefile with a different fill color. > Is there an easy way to do what I am trying to accomplish? The ideal end > state would be the ability to initialize (programmatically) each > SimpleFeature within a shapefile with a different fill color, then be able > to dynamically change those individual fill colors as needed. I've just written an example of using a filter function to create a lookup table that matches unique values of some feature attribute to colours. The function can then be used to set fill and stroke properties of a rendering style. The example is here: http://svn.osgeo.org/geotools/branches/2.6.x/demo/example/src/main/java/org/geotools/demo/StyleFunctionLab.java I'm not sure if it's exactly what you were looking for but hopefully it's close enough to be useful. I'm also not sure if the way that I've coded the example, with a custom filter function class, is the best way to do it. Someone else here may be able to suggest an easier approach. Michael ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
