class RasterSymbolizer extends Symbolizer
A Raster Symbolizer is used to style Rasters. It is also a base class for all other Raster Symbolizers.
Most commonly you will only use the RasterSymbolizer to control opacity:
def raster = new RasterSymbolizer(0.5)
But you can also control overlap and geometry name properties:
def raster = new RasterSymbolizer(0.75, "AVERAGE", "the_geom")
Fields inherited from class | Fields |
---|---|
class Symbolizer |
filterFactory, styleBuilder, styleFactory, styleOptions, title |
Type | Name and description |
---|---|
Expression |
geometry The geometry name |
Expression |
opacity The overall opacity of the Raster Symbolizer |
Expression |
overlap How overalapping rasters are handled (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM) |
Constructor and description |
---|
RasterSymbolizer(java.lang.Object opacity, java.lang.Object overlap, java.lang.Object geometry) Create a new Raster Symbolizer |
RasterSymbolizer(Map map) Create a new Raster Symbolizer from named parameters. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
apply(Symbolizer sym) Apply this Symbolizer to the GeoTools Symbolizer |
|
RasterSymbolizer |
geometry(java.lang.Object geometry) Set the geometry name |
|
RasterSymbolizer |
opacity(java.lang.Object opacity) Set the opacity (0-1) |
|
RasterSymbolizer |
overlap(java.lang.Object overlap) Set the overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM) |
|
protected void |
prepare(Rule rule) Prepare the GeoTools Rule by applying this Symbolizer |
|
void |
setGeometry(java.lang.Object geometry) Set the geometry name |
|
void |
setOpacity(java.lang.Object opacity) Set the opacity (0-1) |
|
void |
setOverlap(java.lang.Object overlap) Set the overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM) |
|
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, getTitle, plus, prepare, prepare, range, range, sortBy, sortBy, title, where, zindex |
The geometry name
The overall opacity of the Raster Symbolizer
How overalapping rasters are handled (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM)
Create a new Raster Symbolizer
opacity
- The opacityoverlap
- The overlap valuegeometry
- The geometry nameCreate a new Raster Symbolizer from named parameters.
map
- The map of named parametersApply this Symbolizer to the GeoTools Symbolizer
sym
- The GeoTools SymbolizerSet the geometry name
geometry
- The geometry nameSet the opacity (0-1)
opacity
- The opacity (0-1)Set the overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM)
overlap
- The overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM)Prepare the GeoTools Rule by applying this Symbolizer
rule
- The GeoTools RuleSet the geometry name
geometry
- The geometry nameSet the opacity (0-1)
opacity
- The opacity (0-1)Set the overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM)
overlap
- The overlap value (LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM)The string representation
Groovy Documentation