nl.itc.RIMapper
Class SVGRasterizer

java.lang.Object
  extended by nl.itc.RIMapper.SVGRasterizer

public class SVGRasterizer
extends Object

Transcodes SVG streams to PNG/JPEG for WMS compatibility.
Uses Batik SVG toolkit for transcoding (http://xmlgraphics.apache.org/batik/)
©2010 International Institute for Geo-information Science and Earth Observation (ITC)
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. see http://creativecommons.org/licenses/by-nc-sa/2.5/

Version:
2.0 [Sep 2010]
Author:
Barend Köbben - kobben@itc.nl

Constructor Summary
SVGRasterizer()
           
 
Method Summary
 void doSVGRasterize(StringBuffer inputSVG, String theType, int theW, int theH, ServletOutputStream myOut)
          Transcodes SVG streams to PNG/JPEG for WMS compatibility.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGRasterizer

public SVGRasterizer()
Method Detail

doSVGRasterize

public void doSVGRasterize(StringBuffer inputSVG,
                           String theType,
                           int theW,
                           int theH,
                           ServletOutputStream myOut)
                    throws RIMapperException
Transcodes SVG streams to PNG/JPEG for WMS compatibility.
Uses Batik SVG toolkit for transcoding (http://xmlgraphics.apache.org/batik/)

Parameters:
inputSVG - - the input SVG as a StringBuffer
theType - - uses MIME type to distinguish: "image/png" or "image/jpeg"
theW - - width in pixels
theH - - height in pixels
myOut - - Output stream (usually the WMS servlets ServletOutputStream)
Throws:
RIMapperException