Hi Luong,

There's some confusion about what's what in your code - especially
regarding interfaces.  The good news is that it can all be a lot
simpler :)

For starters, to make a simple style for a line feature type you can
just use a method like this...

    public Style createLineStyle(String featureTypeName, Color c) {
        StyleFactory sf = CommonFactoryFinder.getStyleFactory(null);
        StyleBuilder sb = new StyleBuilder(sf);
        LineSymbolizer sym = sb.createLineSymbolizer(c);
        return sb.createStyle(featureTypeName, sym);
    }

Hope this helps

Michael

------------------------------------------------------------------------------
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

Reply via email to