Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-15 Thread ATI
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. Also, inorder to display the road names, do i need to have the .dbf

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-15 Thread Ian Turton
On Mon, Jun 15, 2009 at 7:18 AM, ATIluong8...@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.

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-15 Thread ATI
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

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-14 Thread ATI
Or are u talking about this, http://docs.codehaus.org/display/GEOTDOC/MapPane#MapPane-CodeExample Can you please tell me where exactly i can find the mapPane demo. Thanks ATI wrote: Hi, are you referring to the spearfish because i can't seem to find it, also the link,

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-14 Thread Michael Bedward
2009/6/14 ATI luong8...@hotmail.com: Can you please tell me where exactly i can find the mapPane demo. For GeoTools 2.5.x the source code is here: http://svn.osgeo.org/geotools/tags/2.5.6/demo/mappane-use/ In particular, look at this class:

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-13 Thread ATI
Once i have the sld file and parsed it, what do i do next, and how, inorder to display the roads from my .dbf onto my app? Any suggestions. ATI wrote: Hi, i apoligise for the confusion, the problem is the code. In one of the posts i made ealier on,

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-13 Thread Ian Turton
On Sat, Jun 13, 2009 at 7:24 AM, ATIluong8...@hotmail.com wrote: Once i have the sld file and parsed it, what do i do next, and how, inorder to display the roads from my .dbf onto my app? Any suggestions. Look at the MapPane demo - it reads in a shapefile and an SLD file and displays them.

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-13 Thread ATI
Hi, are you referring to the spearfish because i can't seem to find it, also the link, http://docs.codehaus.org/display/GEOTOOLS/Demo+Code, does not have the name of MapPane demo because i cannot seem to find it. After scouring, i did find this link,

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-12 Thread Ian Turton
On Fri, Jun 12, 2009 at 11:47 AM, ATIluong8...@hotmail.com wrote: Does anybody know how i can use the style object to help render the text from my .dbf file? because i looked that the tutorial http://docs.codehaus.org/display/GEOTDOC/06+Style+Layer+Descriptor+Document, and tried to use it in

Re: [Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-12 Thread ATI
Hi, i apoligise for the confusion, the problem is the code. In one of the posts i made ealier on, http://n2.nabble.com/displaying-my-road-names-from-dbf-onto-my-shapefile-td3036516.html, which had the same goal, aaime said Write you own SLD, parse it with SLDParser and use the Style object

[Geotools-gt2-users] Using Style in conjunction with my .SLD file

2009-06-11 Thread ATI
Hi, as some of you might be aware, i'm attempting to display my road names from my .dbf file onto my shapefile. At present i'm up to the stage where i am trying to use a style obj to help read/parse the sld file and apply it to the a layer. I have already harde coded the location of the