|
From: ATI <luo...@ho...> - 2009-06-15 19:42:58
|
Oh i see, that has made things a bit more clearer, sorry if i kept on banging about the .dbf file, i just naturally assumed that you had to have the info read into the db, read it in the app (with the posgis driver) and use the rendering stuff to display them. Thanks again. I'll have a look at the code. Cheers Ian Turton wrote: > > 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/ > > ------------------------------------------------------------------------------ > 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://n2.nabble.com/Using-Style-in-conjunction-with-my-.SLD-file-tp3061498p3082342.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |