Examples of toLayer()


Examples of org.geotools.map.MapLayer.toLayer()

   
    public void write(WMSMapContext mapContext, OutputStream output) throws Exception {
        List features = new ArrayList();
        for (int i = 0; i < mapContext.getLayerCount(); i++) {
            MapLayer l = mapContext.getLayer(i);
            if (l.toLayer() instanceof FeatureLayer) {
                FeatureSource source = mapContext.getLayer(i).getFeatureSource();
                features.add(source.getFeatures(l.getQuery()));
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.