it.eng.spagobi.geo.render
Class MapRenderer

java.lang.Object
  extended by it.eng.spagobi.geo.render.MapRenderer

public class MapRenderer
extends java.lang.Object

Defines methods which transform and render the map

Author:
fiscato

Constructor Summary
MapRenderer()
           
 
Method Summary
 java.io.File renderMap(byte[] template, it.eng.spago.base.SourceBean servRequest)
          Gets the original svg map and the datawarehouse data and then transfor the svg map based on the template configuration and data recovered.
 void sVGToJPEGTransform(java.io.InputStream inputStream, java.io.OutputStream outputStream)
          Transform the svg file into a jpeg image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRenderer

public MapRenderer()
Method Detail

renderMap

public java.io.File renderMap(byte[] template,
                              it.eng.spago.base.SourceBean servRequest)
                       throws java.lang.Exception
Gets the original svg map and the datawarehouse data and then transfor the svg map based on the template configuration and data recovered. The new map is stored in a temporary file

Parameters:
template - the configuration of the map rendering
servRequest - The Spago Service Request
Returns:
the File object associated to the temporary file of the new svg map
Throws:
java.lang.Exception - If some errors occur during the elaboration

sVGToJPEGTransform

public void sVGToJPEGTransform(java.io.InputStream inputStream,
                               java.io.OutputStream outputStream)
                        throws java.lang.Exception
Transform the svg file into a jpeg image

Parameters:
inputStream - the strema of the svg map
outputStream - the output stream where the jpeg image is written
Throws:
java.lang.Exception - raised if some errors occur during the elaboration