Class AbstractSLDMapFunction<T>
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDFunction<T>
-
- uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDMapFunction<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
SLDFunction<T>
- Direct Known Subclasses:
ColorSLDMapFunction
public class AbstractSLDMapFunction<T> extends AbstractSLDFunction<T>
Abstract implementation of a function which maps integer values to specific other values (colours / densities / etc, parameterised byT
). It's primary use is to render categorical data where a single integer maps to a data type. However the<se:Categorize>
was already taken and applies to data which falls between thresholds, so this is called<resc:Map>
This is adapted fromAbstractSLDCategorizeFunction
because it is very similar.- Author:
- Guy Griffiths
-
-
Constructor Summary
Constructors Constructor Description AbstractSLDMapFunction(XPath xPath, Node function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Integer,T>
getValueMap()
protected NodeList
parseValues()
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDFunction
getFallbackValue, parseColorFallbackValue, parseFloatFallbackValue, parseLookupValue
-
-
-
-
Method Detail
-
getValueMap
public Map<Integer,T> getValueMap()
- Returns:
- A map from
Integer
category values to the values they should be represented by (colour / density / etc)
-
parseValues
protected NodeList parseValues() throws XPathExpressionException, SLDException
- Throws:
XPathExpressionException
SLDException
-
-