class Transform extends Symbolizer
A Symbolizer that wraps a geoscript.filter.Function generally used for transforming Geometry or String or Date formatting.
You can create a Transform from a CQL statement:
Transform transform = new Transform("centroid(the_geom)")
Or from a geoscript.filter.Function:
Transform transform1 = new Transform(new Function("myCentroid", {g -> g.centroid}))
| Modifiers | Name | Description |
|---|---|---|
static enum |
Transform.Type |
The Type enumeration |
| Modifiers | Name | Description |
|---|---|---|
static GpxReader.Type |
NORMAL |
Type constants for ease of use |
static GpxReader.Type |
RENDERING |
| Fields inherited from class | Fields |
|---|---|
class Symbolizer |
filterFactory, styleBuilder, styleFactory, styleOptions |
| Constructor and description |
|---|
Transform
(Function function, GpxReader.Type type)Create a new Transform from a Function. |
Transform
(java.lang.String cql, GpxReader.Type type)Create a new Transform from a CQL filter function. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
apply(Symbolizer sym)Apply this Symbolizer to the GeoTools Symbolizer |
|
Function |
getFunction()Get the Function |
|
GpxReader.Type |
getType()Get the Type |
|
protected void |
prepare(FeatureTypeStyle fts, Rule rule)Prepare the GeoTools FeatureTypeStyle and Rule by applying this Symbolizer. |
|
protected void |
prepare(Rule rule)Prepare the GeoTools Rule by applying this Symbolizer |
|
java.lang.String |
toString()The string representation |
| Methods inherited from class | Name |
|---|---|
class Symbolizer |
and, apply, asSLD, asSLD, buildString, composite, createGeoToolsSymbolizer, getDefault, getDefault, getGeoToolsSymbolizers, getGtStyle, getSld, plus, prepare, prepare, range, range, sortBy, sortBy, where, zindex |
Type constants for ease of use
Create a new Transform from a Function.
Transform transform1 = new Transform(new Function("myCentroid", {g -> g.centroid}))
function - The geoscript.filter.Functiontype - The optional Transformation type (GEOMETRY or RENDERING)Create a new Transform from a CQL filter function.
Transform transform = new Transform("centroid(the_geom)")
cql - A CQL stringApply this Symbolizer to the GeoTools Symbolizer
sym - The GeoTools SymbolizerGet the Function
Get the Type
Prepare the GeoTools FeatureTypeStyle and Rule by applying this Symbolizer.
fts - The GeoTools FeatureTypeStylerule - The GeoTools RulePrepare the GeoTools Rule by applying this Symbolizer
rule - The GeoTools RuleThe string representation