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 Transform.Type |
NORMAL |
Type constants for ease of use |
static Transform.Type |
RENDERING |
Constructor and description |
---|
Transform
(Function function, Transform.Type type = Type.NORMAL) Create a new Transform from a Function. |
Transform
(java.lang.String cql, Transform.Type type = Type.NORMAL) Create a new Transform from a CQL filter function. |
Type | Name and description |
---|---|
protected void |
apply(org.geotools.styling.Symbolizer sym) Apply this Symbolizer to the GeoTools Symbolizer |
Function |
getFunction() Get the Function |
Transform.Type |
getType() Get the Type |
protected void |
prepare(org.geotools.styling.FeatureTypeStyle fts, org.geotools.styling.Rule rule) Prepare the GeoTools FeatureTypeStyle and Rule by applying this Symbolizer. |
protected void |
prepare(org.geotools.styling.Rule rule) Prepare the GeoTools Rule by applying this Symbolizer |
java.lang.String |
toString() The string representation |
Methods inherited from class | Name |
---|---|
interface org.geotools.styling.Symbolizer |
org.geotools.styling.Symbolizer#accept(org.geotools.styling.StyleVisitor), org.geotools.styling.Symbolizer#setName(java.lang.String), org.geotools.styling.Symbolizer#hasOption(java.lang.String), org.geotools.styling.Symbolizer#getOptions(), org.geotools.styling.Symbolizer#getDescription(), org.geotools.styling.Symbolizer#getDescription(), org.geotools.styling.Symbolizer#setDescription(org.opengis.style.Description), org.geotools.styling.Symbolizer#getGeometry(), org.geotools.styling.Symbolizer#setGeometry(org.opengis.filter.expression.Expression), org.geotools.styling.Symbolizer#setUnitOfMeasure(javax.measure.unit.Unit), org.geotools.styling.Symbolizer#getGeometryPropertyName(), org.geotools.styling.Symbolizer#setGeometryPropertyName(java.lang.String), org.geotools.styling.Symbolizer#getName(), org.geotools.styling.Symbolizer#accept(org.opengis.style.StyleVisitor, java.lang.Object), org.geotools.styling.Symbolizer#getUnitOfMeasure() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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