deneth karunarathne ha scritto:
> dear all ;
> 
>  Im looking into creating an SVG object with geotools to be transferred 
> to a mobile to be displayed. Is there any example code of generating an 
> SVG object via Geotools. The api provides the classes. Any help

It's actually just a matter of using StreamingRenderer and feeding
it with the Graphics2D object generated by the Batik library, that will
do all the SVG writing transparently.

An example can be found in the GeoServer code:

http://svn.codehaus.org/geoserver/branches/1.7.x/src/wms/src/main/java/org/vfny/geoserver/wms/responses/map/svg/SVGBatikMapProducer.java

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to