From: Steve B. <me...@bo...> - 2005-11-22 17:42:13
|
Hi, I'm new to Java and new to GeoTools. I've managed to load a shapefile into a layer and can display it using the StyledMapPane. I can alter the colour of all of the polygons in that layer by replacing the layer's style object. What I want to do is to change the colour of one of the polygons in the layer. I have added a field in the shapefile table called "colour" which is an integer which will signify what colour a particular polygon should be drawn in. The problem is I just can't figure out what I need to do to get this to work. Could someone please tell me which classes I should be looking at, or point me at some sample code? Thank you very much, Regards, Steve Borg |