Package org.geotools.geometry.jts

Examples of org.geotools.geometry.jts.ReferencedEnvelope.intersection()


                Filter filter = ((DataAccessLimits) limits).getReadFilter();
                if (filter != null) {
                    //extract filter envelope from filter
                    Envelope box = (Envelope) filter.accept(ExtractBoundsFilterVisitor.BOUNDS_VISITOR, null);
                    if (box != null) {
                        limitBox = new ReferencedEnvelope(limitBox.intersection(box), dataCrs);                       
                    }
                }
                if (limits instanceof CoverageAccessLimits) {
                    if (((CoverageAccessLimits) limits).getRasterFilter() != null) {
                        Envelope box = ((CoverageAccessLimits) limits).getRasterFilter().getEnvelopeInternal();
View Full Code Here


                }
                if (limits instanceof CoverageAccessLimits) {
                    if (((CoverageAccessLimits) limits).getRasterFilter() != null) {
                        Envelope box = ((CoverageAccessLimits) limits).getRasterFilter().getEnvelopeInternal();
                        if (box != null) {
                            limitBox = new ReferencedEnvelope(limitBox.intersection(box), dataCrs);                       
                        }
                    }
                }
                if (limits instanceof WMSAccessLimits) {
                    if (((WMSAccessLimits) limits).getRasterFilter() != null) {
View Full Code Here

                }
                if (limits instanceof WMSAccessLimits) {
                    if (((WMSAccessLimits) limits).getRasterFilter() != null) {
                        Envelope box = ((WMSAccessLimits) limits).getRasterFilter().getEnvelopeInternal();
                        if (box != null) {
                            limitBox = new ReferencedEnvelope(limitBox.intersection(box), dataCrs);                       
                        }
                    }
                }               
               
                if (!limitBox.covers(ReferencedEnvelope.EVERYTHING) && (boundingBox==null || !limitBox.contains(boundingBox))) {
View Full Code Here

                        targetAov.getEnvelopeInternal(), targetCrs);
                // transform target AOV in target CRS to native CRS
                ReferencedEnvelope targetAovInNativeCrs = targetAovBounds.transform(nativeCrs,
                        true, 10000);
                // get the intersection between the target aov in native crs and native layer bounds
                Envelope intersection = targetAovInNativeCrs.intersection(nativeBounds);
                ReferencedEnvelope clipped = new ReferencedEnvelope(intersection, nativeCrs);

                // transform covered area in native crs to target crs
                transformedBounds = clipped.transform(targetCrs, true, 10000);
            } catch (Exception e1) {
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.