| Package | Description |
|---|---|
| org.geotools.brewer.color | |
| org.geotools.feature.visitor | |
| org.geotools.filter | |
| org.geotools.styling |
Allows for symbolization of geospatial data.
|
| Modifier and Type | Method and Description |
|---|---|
static FeatureTypeStyle |
StyleGenerator.createFeatureTypeStyle(Classifier classifier,
Expression expression,
Color[] colors,
String typeId,
GeometryDescriptor geometryAttrType,
int elseMode,
double opacity,
Stroke defaultStroke)
Merges a classifier, array of colors and other data into a FeatureTypeStyle object.
|
static void |
StyleGenerator.modifyFTS(FeatureTypeStyle fts,
int ruleIndex,
String styleExpression)
Used to update an existing style based on the provided input.
|
static Filter |
StyleGenerator.toExplicitFilter(String styleExpression,
Expression attribExpr)
Creates a filter with each value explicitly defined.
|
static Filter |
StyleGenerator.toExplicitFilter(String styleExpression,
SimpleFeatureType featureType,
String attributeTypeName)
Creates a filter with each value explicitly defined.
|
static Filter[] |
StyleGenerator.toFilter(String[] styleExpression,
SimpleFeatureType[] featureType,
String[] attributeTypeName)
Converts an array of styleExpressions and attributes into Filters
styleExpression[0] = "1..5";styleExpression[1] = "5..10";styleExpression[2] = "11, -13";--->filter[0] = [[1 <= attr] AND [attr < 5]]filter[1] = [[6 <= attr] AND [attr <= 10]]filter[2] = [[attr = 11] OR [attr = -13]] |
static Filter |
StyleGenerator.toRangedFilter(String styleExpression,
SimpleFeatureType featureType,
String attributeTypeName,
boolean upperBoundClosed)
Creates a filter for a range of values.
|
| Constructor and Description |
|---|
AverageVisitor(Expression expr)
Constructor class for the AverageVisitor using an expression
|
AverageVisitor(int attributeTypeIndex,
SimpleFeatureType type)
Constructor class for the AverageVisitor using AttributeDescriptor ID
|
AverageVisitor(String attrName,
SimpleFeatureType type)
Constructor class for the AverageVisitor using AttributeDescriptor Name
|
MaxVisitor(Expression expr) |
MaxVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
MaxVisitor(String attrName,
SimpleFeatureType type) |
MedianVisitor(Expression expr) |
MedianVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
MedianVisitor(String attrName,
SimpleFeatureType type) |
MinVisitor(Expression expr) |
MinVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
MinVisitor(String attrName,
SimpleFeatureType type) |
SumAreaVisitor(Expression expr) |
SumAreaVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
SumAreaVisitor(String attrName,
SimpleFeatureType type) |
SumVisitor(Expression expr) |
SumVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
SumVisitor(String attrName,
SimpleFeatureType type) |
UniqueCountVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
UniqueCountVisitor(String attrName,
SimpleFeatureType type) |
UniqueVisitor(int attributeTypeIndex,
SimpleFeatureType type) |
UniqueVisitor(String attrName,
SimpleFeatureType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
LogicFilterImpl.addFilter(Filter filter)
Adds a sub filter to this filter.
|
Filter |
LogicSAXParser.create()
Creates the the logic filter if in a complete state.
|
Filter |
FilterSAXParser.create()
Creates the filter held in the parser.
|
void |
LogicSAXParser.end(short logicType)
To be called when the sax parser reaches the end of a logic filter.
|
void |
ExpressionSAXParser.end(String message)
Called when the filter handler has reached the end of an expression
|
void |
FilterSAXParser.expression(Expression expression)
Adds the passed in expression to the current filter.
|
void |
ExpressionSAXParser.geometry(Geometry geometry)
Gets geometry.
|
void |
ExpressionSAXParser.message(String message,
boolean convertToNumber)
Handles incoming characters.
|
void |
FilterSAXParser.setDistance(String distance,
String units)
This sets the distance for a GeometryDistanceFilter.
|
void |
LogicSAXParser.start(short logicType)
To be called by a parser to start the creation of a logic filter.
|
void |
FilterSAXParser.start(short filterType)
Handles all incoming generic string 'messages,' including a message to create the filter,
based on the XML tag that represents the start of the filter.
|
void |
ExpressionSAXParser.start(String declaredType,
Attributes atts)
Initializes the factory to create a new expression.
|
void |
FilterSAXParser.value(String message)
Handles all incoming generic string 'messages,' including a message to create the filter,
based on the XML tag that represents the start of the filter.
|
| Constructor and Description |
|---|
AttributeExpressionImpl(SimpleFeatureType schema,
String attPath)
Constructor with schema and path to the attribute.
|
LiteralExpressionImpl(Object literal)
Constructor with literal.
|
LogicFilterImpl(Filter filter1,
Filter filter2,
short filterType)
Convenience constructor to create an AND/OR logic filter.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
StyleBuilder.attributeExpression(String attributeName)
create an attribute expression
|
Style |
StyleBuilder.buildClassifiedStyle(SimpleFeatureCollection fc,
String name,
String[] colors,
SimpleFeatureType schema)
given a feature collection and an array of colours build a style with the given number of
classes on the named column
|
TextSymbolizer |
StyleBuilder.createTextSymbolizer(Color color,
Font[] fonts,
String attributeName)
create a textsymbolizer
|
TextSymbolizer |
StyleBuilder.createTextSymbolizer(Color color,
Font font,
String attributeName)
create a textsymbolizer
|
Expression |
StyleBuilder.literalExpression(Object value)
create a literal expression representing the value
|
Copyright © 1996–2021 Geotools. All rights reserved.