de.lmu.ifi.dbs.elki.result
Class KMLOutputHandler

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.KMLOutputHandler
All Implemented Interfaces:
ResultHandler, ResultProcessor, InspectionUtilFrequentlyScanned, Parameterizable

@Reference(authors="E. Achtert, A. Hettab, H.-P. Kriegel, E. Schubert, A. Zimek",
           booktitle="Proc. 12th International Symposium on Spatial and Temporal Databases (SSTD), Minneapolis, MN, 2011",
           title="Spatial Outlier Detection: Data, Algorithms, Visualizations")
public class KMLOutputHandler
extends Object
implements ResultHandler, Parameterizable

Class to handle KML output. Reference:

E. Achtert, A. Hettab, H.-P. Kriegel, E. Schubert, A. Zimek:
Spatial Outlier Detection: Data, Algorithms, Visualizations.
in Proc. 12th International Symposium on Spatial and Temporal Databases (SSTD), Minneapolis, MN, 2011


Nested Class Summary
static class KMLOutputHandler.Parameterizer
          Parameterization class
 
Field Summary
private  boolean autoopen
          Automatically open at the end
private  boolean compat
          Compatibility mode.
(package private)  File filename
          Output file name
static Logging logger
          Logger class to use.
private static int NUMSTYLES
          Number of styles to use (lower reduces rendering complexity a bit)
(package private)  OutlierScalingFunction scaling
          Scaling function
 
Constructor Summary
KMLOutputHandler(File filename, OutlierScalingFunction scaling, boolean compat, boolean autoopen)
          Constructor.
 
Method Summary
private static Color getColorForValue(double val)
           
private  StringBuffer makeDescription(Collection<Relation<?>> relations, DBID id)
          Make an HTML description.
 void processNewResult(HierarchicalResult baseResult, Result newResult)
          Process a result.
private  void writeKMLData(XMLStreamWriter out, OutlierResult outlierResult, Database database)
           
private  void writeNewlineOnDebug(XMLStreamWriter out)
          Print a newline when debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logging logger
Logger class to use.


NUMSTYLES

private static final int NUMSTYLES
Number of styles to use (lower reduces rendering complexity a bit)

See Also:
Constant Field Values

filename

File filename
Output file name


scaling

OutlierScalingFunction scaling
Scaling function


compat

private boolean compat
Compatibility mode.


autoopen

private boolean autoopen
Automatically open at the end

Constructor Detail

KMLOutputHandler

public KMLOutputHandler(File filename,
                        OutlierScalingFunction scaling,
                        boolean compat,
                        boolean autoopen)
Constructor.

Parameters:
filename - Output filename
scaling - Scaling function
compat - Compatibility mode
autoopen - Automatically open
Method Detail

processNewResult

public void processNewResult(HierarchicalResult baseResult,
                             Result newResult)
Description copied from interface: ResultProcessor
Process a result.

Specified by:
processNewResult in interface ResultProcessor
Parameters:
baseResult - The base of the result tree.
newResult - Newly added result subtree.

writeKMLData

private void writeKMLData(XMLStreamWriter out,
                          OutlierResult outlierResult,
                          Database database)
                   throws XMLStreamException
Throws:
XMLStreamException

makeDescription

private StringBuffer makeDescription(Collection<Relation<?>> relations,
                                     DBID id)
Make an HTML description.

Parameters:
relations - Relations
id - Object ID
Returns:
Buffer

writeNewlineOnDebug

private void writeNewlineOnDebug(XMLStreamWriter out)
                          throws XMLStreamException
Print a newline when debugging.

Parameters:
out - Output XML stream
Throws:
XMLStreamException

getColorForValue

private static final Color getColorForValue(double val)

Release 0.4.0 (2011-09-20_1324)