Class AbstractSLDSymbolizer

    • Field Detail

      • symbolizerNode

        protected Node symbolizerNode
      • xPath

        protected XPath xPath
    • Constructor Detail

      • AbstractSLDSymbolizer

        public AbstractSLDSymbolizer()
    • Method Detail

      • parseSymbolizer

        protected abstract ImageLayer parseSymbolizer()
                                               throws Exception
        This method must be implemented by any symbolizer classes extending this class. New subclasses should use the xPath field to parse the symbolizerNode field, which will contain the symbolizer node of the SLD XML document on execution. The SLD layer name is also provided in the layerName field. The resulting image layer should be returned. New symbolizers must also be registered using the registerSymbolizer method of the StyleSLDParser class at runtime, either in the static initializer of that class or elsewhere before the createImage method of StyleSLDParser is executed.
        Returns:
        ImageLayer
        Throws:
        Exception
      • getImageLayer

        public ImageLayer getImageLayer​(List<String> varNames,
                                        Node symbolizerNode)
                                 throws SLDException
        Parse the node of the SLD XML document when given as a parameter as well as the name of the SLD layer and return an image layer object.
        Specified by:
        getImageLayer in interface SLDSymbolizer
        Parameters:
        varNames -
        symbolizerNode -
        Returns:
        ImageLayer
        Throws:
        SLDException