hey all,

I'd like to display a point (London) on the screen (via JMapPane). 

I have created the FeatureSource for the point feature. I need to create
the Style and then I can add the two via: 
        context.addLayer(memFS,memStyl);

So I'm trying to create a style for a point. As I understand it, the
hierarchy is:
  Style
    FeatureTypeStyle
      Rule
        Symbolizer

so here's what I have so far:
        // Create the memStyl from scratch
        StyleBuilder sb = new StyleBuilder();
        memStyl = sb.createStyle();
        PointSymbolizer ptSymbl = sb.createPointSymbolizer();
        FeatureTypeStyle ftStyl = sb.createFeatureTypeStyle(ptSymbl);
        memStyl.addFeatureTypeStyle(ftStyl);

and an earlier attempt:
        org.geotools.styling.Style s = sf.getDefaultStyle();
        FeatureTypeStyle fts = sf.createFeatureTypeStyle();
        fts.setFeatureTypeName("Metropolis");
        s.addFeatureTypeStyle(fts);
        Rule r = sf.createRule();
        r.setName("MetroRule");
        
I can see that I haven't asked anywhere for a glyph (a graphic?) but I'm
not at all sure how to do this.

Any help would be appreciated,

--adrian


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to