Package org.geoserver.wms.map

Examples of org.geoserver.wms.map.XMLTransformerMapResponse


            // delegate to wms reflector
            final WebMap webMap = webMapService.reflect(getMapRequest);
            //as per KMLMapOutputFormat.produceMap
            Assert.isInstanceOf(XMLTransformerMap.class, webMap);
            final XMLTransformerMapResponse respEncoder = new XMLTransformerMapResponse();
           
            // 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 {
                        respEncoder.write(webMap, 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

TOP

Related Classes of org.geoserver.wms.map.XMLTransformerMapResponse

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.