Hi,

 I want to export my geometries that are located outside datasource to
svg format.
In geotools is class org.geotools.svg.GenerateSVG and method go to do
that, but i don't know how to put features in DefaultMapLayer.

this link could help, but i can't find class PFeatureCollection :
http://docs.codehaus.org/display/GEOTOOLS/How+to+create+a+simple+FeatureCollection+from+Scratch?showComments=false

my target is to put polygons in svg, each with different color. so
just geometries. any help would be welcomed.

thanks,
Jan


        GenerateSVG genSVG = new GenerateSVG();

        MapLayer[] layers = new DefaultMapLayer[1];
        layers[0] = new DefaultMapLayer(features, new BasicPolygonStyle());

        MapContext mapContext = new DefaultMapContext(layers);
        Envelope envelope = new Envelope();

        FileOutputStream fout = new FileOutputStream("c:/pokus.svg");
        genSVG.go(mapContext, envelope, fout);

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to