Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.Envelope.intersection()


            return new ArrayList<Envelope>();
        }
        if (!this.tracker.getRootNode().getShape().contains(search)) {
            // query is partially outside of root mbr;  we limit our search to the inside of the root mbr
            Envelope r = CacheUtil.convert((Region) this.tracker.getRootNode().getShape());
            r = r.intersection(e);
            search = CacheUtil.convert(r);
        }

        List<NodeIdentifier>[] tiles = tracker.findMissingTiles(search);
        List<NodeIdentifier> missing_tiles = tiles[0];
View Full Code Here


            return new List[]{Collections.emptyList(), Collections.emptyList()};
        }
        if (!this.tracker.getRootNode().getShape().contains(search)) {
            // query is partially outside of root mbr;  we limit our search to the inside of the root mbr
            Envelope r = CacheUtil.convert((Region) this.tracker.getRootNode().getShape());
            r = r.intersection(e);
            search = CacheUtil.convert(r);
        }

        List<NodeIdentifier>[] tiles = tracker.findMissingTiles(search);
        List<NodeIdentifier> missing_tiles = tiles[0];
View Full Code Here

       
        //check coverage... if the geometry bounds covers most of the the index universe don't use
        // the index since the join query is expensive... it will be more efficient to just do the
        // direct intersection
        //TODO: make this threshhold configurable
        double coverage = uenv.intersection(oenv).getArea() / uenv.getArea();
        if (coverage > 0.5) {
            if (LOGGER.isLoggable(Level.FINE)) {
                LOGGER.fine("Bounds:" + oenv + " covers " + (coverage * 100) + " of universe bounds: "
                  + uenv + ". Forgoing index query.");
            }
View Full Code Here

        public SimpleFeatureCollection subCollection(Filter filter) {
            // get the new target envelope
            Envelope filterEnvelope = getEnvelope(filter);
            Envelope subEnvelope = queryBounds;
            if(filterEnvelope != null) {
                subEnvelope = subEnvelope.intersection(queryBounds);
            }
            if(subEnvelope.isNull()) {
                return new EmptyFeatureCollection(targetSchema);
            }
           
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.