On Mon, Jun 15, 2009 at 7:18 AM, ATI<luong8...@hotmail.com> wrote: > > Oh thanks, much appreciated. > > I 've been skimming the code for a bit and wanted to ask you something. How > does it know how to pick the road names from the .dbf file? as i could not > find any piece of code that refers to that. >
The SLD file (which is converted to a Style object in the code) takes care of what is drawn, you'll probably need a Line Symbolizer to draw the roads and a Text Symbolizer to label them. > Also, inorder to display the road names, do i need to have the .dbf file > already read into a postgis db? No - as you will see in MapViewer it is easy to style and display a shapefile (really you need to forget about the dbf file - it's just part of the shapefile). Ian -- Ian Turton http://www.geotools.org http://pennspace.blogspot.com/ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users