nl.itc.RIMapper
Class SVGRasterizer
java.lang.Object
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
|
Method Summary |
void |
doSVGRasterize(StringBuffer inputSVG,
String theType,
int theW,
int theH,
ServletOutputStream myOut)
Transcodes SVG streams to PNG/JPEG for WMS compatibility. |
SVGRasterizer
public SVGRasterizer()
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 StringBuffertheType - - uses MIME type to distinguish: "image/png" or "image/jpeg"theW - - width in pixelstheH - - height in pixelsmyOut - - Output stream (usually the WMS servlets ServletOutputStream)
- Throws:
RIMapperException