@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
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
Modifier and Type | Class and Description |
---|---|
static class |
KMLOutputHandler.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private boolean |
autoopen
Automatically open at the end
|
private boolean |
compat
Compatibility mode.
|
(package private) File |
filename
Output file name
|
private static Logging |
LOG
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 and Description |
---|
KMLOutputHandler(File filename,
OutlierScalingFunction scaling,
boolean compat,
boolean autoopen)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Color |
getColorForValue(double val)
Get color from a simple heatmap.
|
private StringBuilder |
makeDescription(Collection<Relation<?>> relations,
DBIDRef id)
Make an HTML description.
|
void |
processNewResult(HierarchicalResult baseResult,
Result newResult)
Process a result.
|
private void |
writeKMLData(XMLStreamWriter xmlw,
OutlierResult outlierResult,
Database database) |
private void |
writeNewlineOnDebug(XMLStreamWriter out)
Print a newline when debugging.
|
private static final Logging LOG
private static final int NUMSTYLES
File filename
OutlierScalingFunction scaling
private boolean compat
private boolean autoopen
public KMLOutputHandler(File filename, OutlierScalingFunction scaling, boolean compat, boolean autoopen)
filename
- Output filenamescaling
- Scaling functioncompat
- Compatibility modeautoopen
- Automatically openpublic void processNewResult(HierarchicalResult baseResult, Result newResult)
ResultProcessor
processNewResult
in interface ResultProcessor
baseResult
- The base of the result tree.newResult
- Newly added result subtree.private void writeKMLData(XMLStreamWriter xmlw, OutlierResult outlierResult, Database database) throws XMLStreamException
XMLStreamException
private StringBuilder makeDescription(Collection<Relation<?>> relations, DBIDRef id)
relations
- Relationsid
- Object IDprivate void writeNewlineOnDebug(XMLStreamWriter out) throws XMLStreamException
out
- Output XML streamXMLStreamException
public static final Color getColorForValue(double val)
val
- Score value