Package com.bbn.openmap.proj.coords

Examples of com.bbn.openmap.proj.coords.BoundingBox


        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);
    }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.proj.coords.BoundingBox

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.