Package org.opengis.metadata.extent

Examples of org.opengis.metadata.extent.BoundingPolygon


            Collection<? extends GeographicExtent> elem = extent.getGeographicElements();
            double xmin = Double.MAX_VALUE, ymin = Double.MAX_VALUE;
            double xmax = Double.MIN_VALUE, ymax = Double.MIN_VALUE;
            for (GeographicExtent ext : elem) {
                if (ext instanceof BoundingPolygon) {
                    BoundingPolygon bp = (BoundingPolygon) ext;
                    Collection<? extends org.opengis.geometry.Geometry> geoms = bp.getPolygons();
                    for (org.opengis.geometry.Geometry geom : geoms) {
                        Envelope env = geom.getEnvelope();
                        if (env.getMinimum(0) < xmin)
                            xmin = env.getMinimum(0);
                        if (env.getMaximum(0) > xmax)
View Full Code Here


                GeographicBoundingBox box = (GeographicBoundingBox) extent2;
                env = new ReferencedEnvelope(box.getWestBoundLongitude(),
                        box.getEastBoundLongitude(), box.getSouthBoundLatitude(),
                        box.getNorthBoundLatitude(), DefaultGeographicCRS.WGS84);
            } else if (extent2 instanceof BoundingPolygon) {
                BoundingPolygon boundingpoly = (BoundingPolygon) extent2;
                Collection<? extends Geometry> polygons = boundingpoly.getPolygons();
                for (Geometry geometry : polygons) {
                    Polygon poly = (Polygon) geometry;
                    org.opengis.geometry.Envelope envelope = poly.getBoundary().getEnvelope();
                    env = new ReferencedEnvelope(envelope.getMinimum(0), envelope.getMaximum(0),
                            envelope.getMinimum(1), envelope.getMaximum(1), envelope
View Full Code Here

TOP

Related Classes of org.opengis.metadata.extent.BoundingPolygon

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.