Hi - you can use the "color brewer" module to automatically set up nice colours. Or you can produce a Style object by hand.
You may want to download http://udig.refractions.net/ just to try out the color bewer from an application; you can also experiment with the Style object (by customizing the "style layer descriptor" document) in order to get what you want - and learn how Style works. Jody > Hi, > I am just starting with Geotools and trying to create a shapefile from > a map that is containing parcels. > I have all lambert coordinates for all parcels. > How can I create programmatically a shape file for those parcels and > affect different colors for each of them; depending on some feature ? > For example : > a parcel that is a park should be in a green color. > a parcel that is a house should be in yellow color. > > Then when I click on some parcel I want to display in a box : the area > of the parcel and its feature (park or house). > > Could you just give me a sample code or some indications how to do that. > > Thank you in advance. > > Khandah > > > ------------------------------------------------------------------------ > Be one of the first to try Windows Live Mail. > <http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
