Package org.vfny.geoserver.wms.responses

Examples of org.vfny.geoserver.wms.responses.GetMapResponse


    /**
     * @see WebMapService#getMap(GetMapRequest)
     */
    public GetMapResponse getMap(GetMapRequest request) {
        return new GetMapResponse(WMSExtensions.findMapProducers(context));
    }
View Full Code Here


    public GetMapResponse createResponse() {
        return createResponse(Collections.singletonList(mockMapProducer));
    }

    public GetMapResponse createResponse(List<GetMapProducer> availableProducers) {
        GetMapResponse getMap;
        getMap = new GetMapResponse(availableProducers);
        return getMap;
    }
View Full Code Here

        filename.setLength(filename.length()-1);
        response.setHeader("Content-Disposition",
                "attachment; filename=" + filename.toString() + formatExtension);

        if ("download".equals(mode)){
            GetMapResponse wmsResponse = wms.getMap(request);
            wmsResponse.execute(request);
            wmsResponse.writeTo(response.getOutputStream());
        } else {
            KMLNetworkLinkTransformer transformer = new KMLNetworkLinkTransformer();
            transformer.setIndentation(3);
            Charset encoding = request.getWMS().getCharSet();
            transformer.setEncoding(encoding);
View Full Code Here

            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);

            // wrap response in a reslet output rep
            OutputRepresentation output = new OutputRepresentation(
                    new MediaType("application/vnd.google-earth.kml+xml")) {
                public void write(OutputStream outputStream) throws IOException {
                    try {
                        getMapResponse.execute(getMapRequest);
                        getMapResponse.writeTo(outputStream);
                    } catch (IOException ioe) {
                        throw ioe;
                    } catch (Exception e) {
                        PrintStream printStream = new PrintStream(outputStream);
                        printStream.println("Unable to index feature due to: "
View Full Code Here

     * DOCUMENT ME!
     *
     * @return DOCUMENT ME!
     */
    protected Response getResponseHandler() {
        return new GetMapResponse(WMSExtensions.findMapProducers(getApplicationContext()));
    }
View Full Code Here

     * @return DOCUMENT ME!
     */
    protected Response getResponseHandler() {
        WMSConfig config = (WMSConfig) getServletContext().getAttribute(WMSConfig.CONFIG_KEY);

        return new GetMapResponse(config);
    }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.wms.responses.GetMapResponse

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.