Added by Justin Deoliveira, last edited by Mike Pumphrey on Apr 03, 2008  (view change)

Labels

 
(None)

Geoserver SVG Support

The Geoserver WMS supports SVG (Scalable Vector Graphics) as an output format. To have the server return SVG, the Format parameter must be set to image/svg+xml. The following is an example of such a request (broken up over multiple lines for clarity).

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.

Powered by a free Atlassian Confluence Open Source Project License granted to GeoServer . Evaluate Confluence today.

GeoServer wiki is hosted by OpenGeo - Contact Administrators