Package org.geoserver.kml.utils

Examples of org.geoserver.kml.utils.KMLFeatureAccessor


        }

        int numFeatures = 0;

        try {
            numFeatures = new KMLFeatureAccessor().getFeatureCount(layer, mapContent, wms, -1);
        } catch (ServiceException e) {
            LOGGER.severe("Caught the WmsException!");
            numFeatures = -1;
        } catch (HttpErrorCodeException e) {
            if (e.getErrorCode() == 204) {
View Full Code Here


                // if it's a feature layer, setup the feature collection for it (some decorators use it)
                if (layer instanceof FeatureLayer) {
                    try {
                        WMSMapContent mapContent = context.getMapContent();
                        SimpleFeatureCollection fc = new KMLFeatureAccessor().loadFeatureCollection(
                                layer, mapContent,
                                context.getWms(), mapContent.getScaleDenominator());
                        context.setCurrentFeatureCollection(fc);
                    } catch (Exception e) {
                        if (e instanceof ServiceException) {
View Full Code Here

TOP

Related Classes of org.geoserver.kml.utils.KMLFeatureAccessor

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.