Class SLDImporter

java.lang.Object
org.openjump.util.SLDImporter

public class SLDImporter extends Object
SLDImporter
Version:
$Revision:$, $Date:$
Author:
Andreas Schmitz, last edited by: $Author:$
  • Field Details

  • Constructor Details

    • SLDImporter

      public SLDImporter()
  • Method Details

    • getRuleNames

      public static LinkedList<String> getRuleNames(Document doc)
      Parameters:
      doc - the XML (SLD) document containing the style definition
      Returns:
      a list of SLD rule names
    • getRuleNamesWithGeometrySymbolizers

      public static LinkedList<String> getRuleNamesWithGeometrySymbolizers(Document doc)
      Parameters:
      doc - the XML (SLD) document containing the style definition
      Returns:
      a list of SLD rule names
    • getPossibleColorThemingStyleNames

      public static LinkedList<String> getPossibleColorThemingStyleNames(Document doc)
      Parameters:
      doc - the XML (SLD) document containing the style definition
      Returns:
      a list of SLD FeatureTypeStyle names
    • getRuleNamesWithTextSymbolizers

      public static LinkedList<String> getRuleNamesWithTextSymbolizers(Document doc)
      Parameters:
      doc - the XML (SLD) document containing the style definition
      Returns:
      a list of SLD rule names
    • getBasicStyle

      public static BasicStyle getBasicStyle(String name, Document doc)
      Parameters:
      name - name of the style to retrieve
      doc - the XML (SLD) document containing the style definition
      Returns:
      a corresponding BasicStyle
      See Also:
    • getBasicStyle

      public static XBasicStyle getBasicStyle(Element rule)
      Ignores any filters, and uses the information from Point-, Line- and PolygonSymbolizers.
      Parameters:
      rule - rule element describing a symbolizer
      Returns:
      a corresponding XBasicStyle
    • getVertexStyle

      public static VertexStyle getVertexStyle(String name, Document doc)
      Parameters:
      name - style name
      doc - 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

      public static LabelStyle getLabelStyle(String name, Document doc)
      Converts a TextSymbolizer.
      Parameters:
      name - style name
      doc - the XML (SLD) document containing the style definition
      Returns:
      the label style or null, if none was found
    • getColorThemingStyle

      public static ColorThemingStyle getColorThemingStyle(String name, Document doc)
      Parameters:
      name - style name
      doc - the XML (SLD) document containing the style definition
      Returns:
      the color theming style