Examples of indentElement()


Examples of org.geowebcache.io.XMLBuilder.indentElement()

        StringBuilder str = new StringBuilder();
        XMLBuilder xml = new XMLBuilder(str);
       
        try {
            xml.header("1.0", encoding);
            xml.indentElement("Capabilities");
            xml.attribute("xmlns", "http://www.opengis.net/wmts/1.0");
            xml.attribute("xmlns:ows", "http://www.opengis.net/ows/1.1");
            xml.attribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
            xml.attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
            xml.attribute("xmlns:gml", "http://www.opengis.net/gml");
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

           
            serviceIdentification(xml);
            serviceProvider(xml);
            operationsMetadata(xml);
            contents(xml);
            xml.indentElement("ServiceMetadataURL")
                .attribute("xlink:href", baseUrl+"?REQUEST=getcapabilities&VERSION=1.0.0")
                .endElement();
           
            xml.endElement("Capabilities");
           
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

    protected String getTileMapServiceDoc() {
        StringBuilder str = new StringBuilder();
        XMLBuilder xml = new XMLBuilder(str);
        try {
            xml.header("1.0", encoding);
            xml.indentElement("TileMapService")
            .attribute("version", "1.0.0")
            .attribute("services", urlMangler.buildURL(baseUrl, contextPath, ""));
            // TODO can have these set through Spring
            xml.simpleElement("Title", "Tile Map Service", true);
            xml.simpleElement("Abstract", "A Tile Map Service served by GeoWebCache", true);
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

            //   </ContactAddress>
            //   <ContactVoiceTelephone>12503833022</ContactVoiceTelephone>
            //   <ContactFacsimileTelephone>12503832140</ContactFacsimileTelephone>
            //   <ContactElectronicMailAddress>pramsey@refractions.net</ContactElectronicMailAddress>
            // </ContactInformation>
            xml.indentElement("TileMaps");
            Iterable<TileLayer> iter = tld.getLayerList();
            for (TileLayer layer : iter) {
                if(!layer.isEnabled()){
                    continue;
                }
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

    protected String getTileMapDoc(TileLayer layer, GridSubset gridSub, GridSetBroker gsb, MimeType mimeType) {
        StringBuilder str = new StringBuilder();
        XMLBuilder xml = new XMLBuilder(str);
        try {
            xml.header("1.0", encoding);
            xml.indentElement("TileMap")
            .attribute("version", "1.0.0")
            .attribute("tilemapservice", urlMangler.buildURL(baseUrl, contextPath, "/service/tms/1.0.0"));
            xml.simpleElement("Title", tileMapTitle(layer), true);
            xml.simpleElement("Abstract", tileMapDescription(layer), true);
           
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

            // Check with tschaub whether we actually have to provide this as OSGEO:40041
            // No.
            xml.simpleElement("SRS", gridSub.getSRS().toString(), true);
            double[] coords = gridSub.getCoverageBestFitBounds().getCoords();
            xml.boundingBox(null, coords[0], coords[1], coords[2], coords[3]);
            xml.indentElement("Origin")
                .attribute("x", Double.toString(coords[0]))
                .attribute("y", Double.toString(coords[1]))
                .endElement();
            // Can we have multiple formats? NO
            xml.indentElement("TileFormat")
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

            xml.indentElement("Origin")
                .attribute("x", Double.toString(coords[0]))
                .attribute("y", Double.toString(coords[1]))
                .endElement();
            // Can we have multiple formats? NO
            xml.indentElement("TileFormat")
                .attribute("width", Integer.toString(gridSub.getTileWidth()))
                .attribute("height", Integer.toString(gridSub.getTileHeight()))
                .attribute("mime-type", mimeType.getMimeType())
                .attribute("extension", mimeType.getFileExtension())
                .endElement();
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

                .attribute("width", Integer.toString(gridSub.getTileWidth()))
                .attribute("height", Integer.toString(gridSub.getTileHeight()))
                .attribute("mime-type", mimeType.getMimeType())
                .attribute("extension", mimeType.getFileExtension())
                .endElement();
            xml.indentElement("TileSets")
                .attribute("profile", profileForGridSet(gridSub.getGridSet()));
            double[] resolutions = gridSub.getResolutions();
            int resIdx = 0;
          
            for(int zoom = gridSub.getZoomStart(); zoom <= gridSub.getZoomStop(); zoom++) {
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

                .attribute("profile", profileForGridSet(gridSub.getGridSet()));
            double[] resolutions = gridSub.getResolutions();
            int resIdx = 0;
          
            for(int zoom = gridSub.getZoomStart(); zoom <= gridSub.getZoomStop(); zoom++) {
                xml.indentElement("TileSet");
                xml.attribute("href", tileMapUrl(layer, gridSub, mimeType, zoom));
                xml.attribute("units-per-pixel", Double.toString(resolutions[resIdx]));
                xml.attribute("order", Integer.toString(resIdx));
                xml.endElement();;
                resIdx++;
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.indentElement()

                xml.appendUnescaped("<!ELEMENT Layers (#PCDATA) >\n");
                xml.appendUnescaped("<!ELEMENT Styles (#PCDATA) >\n");
                xml.appendUnescaped("]");
            }
            xml.appendUnescaped(">\n");
            xml.indentElement("WMT_MS_Capabilities").attribute("version", "1.1.1");
   
            // The actual meat
            service(xml);
            capability(xml);
            xml.endElement();
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.