public final class JsonStyleParserHelper
extends java.lang.Object
| Constructor and Description |
|---|
JsonStyleParserHelper(Configuration configuration,
org.springframework.http.client.ClientHttpRequestFactory requestFactory,
org.geotools.styling.StyleBuilder styleBuilder,
boolean allowNullSymbolizer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.geotools.styling.LineSymbolizer |
createLineSymbolizer(PJsonObject styleJson)
Add a line symbolizer definition to the rule.
|
org.geotools.styling.PointSymbolizer |
createPointSymbolizer(PJsonObject styleJson)
Add a point symbolizer definition to the rule.
|
protected org.geotools.styling.PolygonSymbolizer |
createPolygonSymbolizer(PJsonObject styleJson)
Add a polygon symbolizer definition to the rule.
|
org.geotools.styling.Style |
createStyle(java.util.List<org.geotools.styling.Rule> styleRules)
Create a style from a list of rules.
|
protected org.geotools.styling.TextSymbolizer |
createTextSymbolizer(PJsonObject styleJson)
Add a text symbolizer definition to the rule.
|
public JsonStyleParserHelper(@Nullable
Configuration configuration,
@Nonnull
org.springframework.http.client.ClientHttpRequestFactory requestFactory,
@Nonnull
org.geotools.styling.StyleBuilder styleBuilder,
boolean allowNullSymbolizer)
configuration - the configuration to use for resolving relative files or other settings.requestFactory - Request factory for making the request.styleBuilder - a style builder to use for creating the style objects.allowNullSymbolizer - If true then create*Symbolizer() methods can return null if expected params are missing.public org.geotools.styling.Style createStyle(java.util.List<org.geotools.styling.Rule> styleRules)
styleRules - the rules@Nullable public org.geotools.styling.PointSymbolizer createPointSymbolizer(PJsonObject styleJson)
styleJson - The old style.@Nullable protected org.geotools.styling.LineSymbolizer createLineSymbolizer(PJsonObject styleJson)
styleJson - The old style.@Nullable protected org.geotools.styling.PolygonSymbolizer createPolygonSymbolizer(PJsonObject styleJson)
styleJson - The old style.protected org.geotools.styling.TextSymbolizer createTextSymbolizer(PJsonObject styleJson)
styleJson - The old style.