e1.setAttribute("maxy", "90");
layers.appendChild(e1);
}
private void appendSRSBoundingBox(Document doc, Element layers, String crsCode) {
CoordinateReferenceSystem crs = CoordinateReferenceSystem.getForCode(crsCode);
BoundingBox bbox = crs.getBoundingBox();
if (bbox == null) {
return;
}
org.w3c.dom.Element e1 = (org.w3c.dom.Element) node(doc, "BoundingBox");
e1.setAttribute("SRS", crs.getCode());
e1.setAttribute("minx", Double.toString(bbox.getMinX()));
e1.setAttribute("miny", Double.toString(bbox.getMinY()));
e1.setAttribute("maxx", Double.toString(bbox.getMaxX()));
e1.setAttribute("maxy", Double.toString(bbox.getMaxY()));
layers.appendChild(e1);