I see, in the example code, which i know is out of date, but it gives me a starting block for learning this,
roadsStyle.addFeatureTypeStyle(sb.createFeatureTypeStyle(null, sb.createRule(ls2))); http://docs.codehaus.org/display/GEOTOOLS/Putting+everything+together i don't seen a condition being written like anything to do with Filter or Scale, just code saying make sure the road is yellow. I forgot to mention, in this particular function createFeatureTypeStyle(null, sb.createRule(ls2) why would somebody give it the value "null"? because in the javadoc you can give it a typename thanks ajayravichandran wrote: > > Hi > > The general idea is that using a Rule you can control how to render the > feature. > > A Rule has a condition.If the condition is satisfied the Symbolizer > defined > under the rule hold good, so the feature will be drawn based on those > symbolizers. The condition can either be a Filter or Scale value. > > Hope this helps > > Regards > > Ajay Ravichandran > > On Wed, Jan 21, 2009 at 4:29 PM, nvidia <luong8...@hotmail.com> wrote: > >> >> Hi i was reading the page >> http://docs.codehaus.org/display/GEOTDOC/05+Style >> about styles. Would somebody kindly explain the purpose of having a rule >> and >> what relationship it has with the sysmbolizers, because i don't really >> understand what it is saying concerning the rules. >> >> Thanks >> -- >> View this message in context: >> http://n2.nabble.com/Geotools-Rule-Description-tp2195036p2195036.html >> Sent from the geotools-gt2-users mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Geotools-gt2-users mailing list >> Geotools-gt2-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://n2.nabble.com/Geotools-Rule-Description-tp2195036p2195508.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users