|
From: Ian T. <ijt...@gm...> - 2009-06-15 14:02:49
|
On Mon, Jun 15, 2009 at 7:18 AM, ATI<luo...@ho...> 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/ |