Class SLDImporter
java.lang.Object
org.openjump.util.SLDImporter
SLDImporter- Version:
- $Revision:$, $Date:$
- Author:
- Andreas Schmitz, last edited by: $Author:$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFillStylestatic interfaceSizedStrokeFillStylestatic interfaceSizedStylestatic interfaceStrokeFillStylestatic interfaceStrokeStyle -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicStylegetBasicStyle(String name, Document doc) static XBasicStylegetBasicStyle(Element rule) Ignores any filters, and uses the information from Point-, Line- and PolygonSymbolizers.static ColorThemingStylegetColorThemingStyle(String name, Document doc) static LabelStylegetLabelStyle(String name, Document doc) Converts a TextSymbolizer.static LinkedList<String> static LinkedList<String> getRuleNames(Document doc) static LinkedList<String> static LinkedList<String> static VertexStylegetVertexStyle(String name, Document doc)
-
Field Details
-
SLDNS
-
OGCNS
-
NSCONTEXT
Namespace context with sld and ogc namespaces.
-
-
Constructor Details
-
SLDImporter
public SLDImporter()
-
-
Method Details
-
getRuleNames
- Parameters:
doc- the XML (SLD) document containing the style definition- Returns:
- a list of SLD rule names
-
getRuleNamesWithGeometrySymbolizers
- Parameters:
doc- the XML (SLD) document containing the style definition- Returns:
- a list of SLD rule names
-
getPossibleColorThemingStyleNames
- Parameters:
doc- the XML (SLD) document containing the style definition- Returns:
- a list of SLD FeatureTypeStyle names
-
getRuleNamesWithTextSymbolizers
- Parameters:
doc- the XML (SLD) document containing the style definition- Returns:
- a list of SLD rule names
-
getBasicStyle
- Parameters:
name- name of the style to retrievedoc- the XML (SLD) document containing the style definition- Returns:
- a corresponding BasicStyle
- See Also:
-
getBasicStyle
Ignores any filters, and uses the information from Point-, Line- and PolygonSymbolizers.- Parameters:
rule- rule element describing a symbolizer- Returns:
- a corresponding XBasicStyle
-
getVertexStyle
- Parameters:
name- style namedoc- the XML (SLD) document containing the style definition- Returns:
- a vertex style, if a special one was found (use the basic style from #getBasicStyle if this is null)
-
getLabelStyle
Converts a TextSymbolizer.- Parameters:
name- style namedoc- the XML (SLD) document containing the style definition- Returns:
- the label style or null, if none was found
-
getColorThemingStyle
- Parameters:
name- style namedoc- the XML (SLD) document containing the style definition- Returns:
- the color theming style
-