All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.rdg.resc.edal.graphics.style.sld.SLDRasterSymbolizer Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
package uk.ac.rdg.resc.edal.graphics.style.sld;

import javax.xml.xpath.XPathExpressionException;

import uk.ac.rdg.resc.edal.graphics.style.ColourScheme;
import uk.ac.rdg.resc.edal.graphics.style.ImageLayer;
import uk.ac.rdg.resc.edal.graphics.style.RasterLayer;

public class SLDRasterSymbolizer extends AbstractSLDSymbolizer1D {

	/*
	 * Parse symbolizer using XPath
	 */
	@Override
	protected ImageLayer parseSymbolizer() throws XPathExpressionException, NumberFormatException, SLDException {
		ColourScheme colourScheme = SLDColorMapParser.parseColorMap(xPath, symbolizerNode);
		
		// instantiate a new raster layer and add it to the image
		RasterLayer rasterLayer = new RasterLayer(layerName, colourScheme);
		return rasterLayer;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy