nvidia ha scritto: > 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
I believe you do when you want to create a style that can be applied to multiple faeture type styles, that is, one that does not depend on the feature attribute values for filters and the like. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ 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