it.eng.spagobi.geo.render
Class MapRenderer
java.lang.Object
it.eng.spagobi.geo.render.MapRenderer
public class MapRenderer
- extends java.lang.Object
Defines methods which transform and render the map
- Author:
- fiscato
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapRenderer
public MapRenderer()
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 renderingservRequest
- 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 mapoutputStream
- the output stream where the jpeg image is written
- Throws:
java.lang.Exception
- raised if some errors occur during the elaboration