private void capabilityVendorSpecificTileset(StringBuilder str, TileLayer layer, GridSubset grid, String formatStr, String styleName) throws GeoWebCacheException { String srsStr = grid.getSRS().toString(); StringBuilder resolutionsStr = new StringBuilder(); double[] res = grid.getResolutions(); for (int i = 0; i < res.length; i++) { resolutionsStr.append(Double.toString(res[i]) + " "); } String[] bs = boundsPrep(grid.getCoverageBestFitBounds()); str.append(" <TileSet>\n"); str.append(" <SRS>" + srsStr + "</SRS>\n"); str.append(" <BoundingBox SRS=\"" + srsStr + "\" minx=\"" + bs[0] + "\" miny=\"" + bs[1] + "\" maxx=\"" + bs[2] + "\" maxy=\"" + bs[3] + "\" />\n"); str.append(" <Resolutions>" + resolutionsStr.toString() + "</Resolutions>\n"); str.append(" <Width>" + grid.getTileWidth() + "</Width>\n"); str.append(" <Height>" + grid.getTileHeight() + "</Height>\n"); str.append(" <Format>" + formatStr + "</Format>\n"); str.append(" <Layers>" + layer.getName() + "</Layers>\n"); str.append(" <Styles>").append(ServletUtils.URLEncode(styleName)) .append("</Styles>\n"); str.append(" </TileSet>\n"); }
String[] bs = boundsPrep(curGridSubSet.getCoverageBestFitBounds()); boundingBoxStr.append(" <BoundingBox SRS=\"" + curGridSubSet.getSRS().toString() + "\" minx=\"" + bs[0] + "\" miny=\"" String[] bs = boundsPrep(epsg4326GridSubSet.getCoverageBestFitBounds()); str.append(" <LatLonBoundingBox minx=\"" + bs[0] + "\" miny=\"" + bs[1] + "\" maxx=\"" + bs[2] + "\" maxy=\"" + bs[3] + "\"/>\n");
String[] bs = boundsPrep(grid.getCoverageBestFitBounds());
String[] bs = boundsPrep(grid.getCoverageBestFitBounds());
String[] bs = boundsPrep(grid.getCoverageBestFitBounds());
String[] bs = boundsPrep(epsg4326GridSubSet.getCoverageBestFitBounds()); xml.latLonBoundingBox(bs[0], bs[1], bs[2], bs[3]); String[] bs = boundsPrep(curGridSubSet.getCoverageBestFitBounds()); xml.boundingBox(curGridSubSet.getSRS().toString(), bs[0], bs[1], bs[2], bs[3]);
double[] coords = gridSub.getCoverageBestFitBounds().getCoords(); xml.boundingBox(null, coords[0], coords[1], coords[2], coords[3]); xml.indentElement("Origin")
BoundingBox bbox = gridSubset.getCoverageBestFitBounds();
BoundingBox bbox = gridSubset.getCoverageBestFitBounds();