Package org.geotools.map

Examples of org.geotools.map.MapLayer


     * @return
     */
    static List<RasterSymbolizer> getRasterSymbolizers(WMSMapContext mc, int layerIndex) {
        double scaleDenominator = RendererUtilities.calculateOGCScale(mc.getAreaOfInterest(),
                mc.getMapWidth(), null);
        MapLayer layer = mc.getLayer(layerIndex);
        FeatureType featureType = layer.getFeatureSource().getSchema();
        Style style = layer.getStyle();

        RasterSymbolizerVisitor visitor = new RasterSymbolizerVisitor(scaleDenominator, featureType);
        style.accept(visitor);

        return visitor.getRasterSymbolizers();
View Full Code Here

TOP

Related Classes of org.geotools.map.MapLayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.