This page last changed on Nov 20, 2005 by cholmes.

Geoserver SVG Support

The Geoserver WMS supports SVG (Scaleable Vector Graphics) as an output format. To have the server return SVG, the Format paramter must be set to image/svg+xml. The following is an example of such a request.

http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=states&width=800&height=400&srs=EPSG:4326&styles=population&Format=image/svg+xml

Configuration

Geoserver currently supports two SVG renderers. The first is known as the Simple SVG renderer. It has limited support for SLD styling. However it is very fast. The second is known as the Batik renderer (as it uses the Batik SVG Framework). It has full support for SLD styling , but is slow.

To configure which renderer to use, navigate to the WMS Rendering configuration page: Config -> WMS -> Rendering.

On the Rendering configuration, select the radio button for the appropriate SVG renderer and Submit.


svg-config.png (image/png)
svg-wms.png (image/png)
svg-rendering.png (image/png)
svg-select.png (image/png)
Document generated by Confluence on Jan 16, 2008 23:27