Package org.geoserver.wms.kvp

Examples of org.geoserver.wms.kvp.GetMapKvpRequestReader


            } else {
                raw.put("startIndex", Integer.toString(startIndex));
                raw.put("maxfeatures", Integer.toString(maxFeatures));
            }

            GetMapKvpRequestReader reader = new GetMapKvpRequestReader(getWMS());
            reader.setHttpRequest(RESTUtils.getServletRequest(request));

            // parse into request object
            raw = KvpUtils.normalize(raw);
            KvpMap kvp = new KvpMap(raw);
            KvpUtils.parse(kvp);
            final GetMapRequest getMapRequest = (GetMapRequest) reader.read(
                    (GetMapRequest) reader.createRequest(), kvp, raw);
            getMapRequest.setBaseUrl(RESTUtils.getBaseURL(request));

            // delegate to wms reflector
            final GetMapResponse getMapResponse = webMapService
                    .reflect(getMapRequest);
View Full Code Here


     * @param wms
     *            The wms config object.
     */
    public GetFeatureInfoKvpReader(Map kvpPairs, WMS wms) {
        super(kvpPairs, wms);
        getMapReader = new GetMapKvpRequestReader(wms);
    }
View Full Code Here

            paramName = (String) pnames.nextElement();
            paramValue = request.getParameter(paramName);
            requestParams.put(paramName.toUpperCase(), paramValue);
        }

        GetMapKvpRequestReader kvpReader = new GetMapKvpRequestReader(getWMS());

//        String version = kvpReader.getRequestVersion();
//        getMapRequest.setVersion(version);

//        kvpReader.parseMandatoryParameters(getMapRequest, false); //false means dont do styles/layers (see below)
View Full Code Here

TOP

Related Classes of org.geoserver.wms.kvp.GetMapKvpRequestReader

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.