Package org.geotools.geometry.jts

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


        SimpleFeatureCollection some = road.getFeatures(td.rd12Filter);
        assertEquals(2, some.size());

        ReferencedEnvelope e = new ReferencedEnvelope(CRS.decode("EPSG:4326"));
        e.include(td.roadFeatures[0].getBounds());
        e.include(td.roadFeatures[1].getBounds());
//        assertEquals(e, some.getBounds());
        assertTrue(areReferencedEnvelopesEuqal(e, some.getBounds()));

        assertEquals(some.getSchema(), road.getSchema());
View Full Code Here


        FeatureReader<SimpleFeatureType, SimpleFeature> featureReader = getReaderInternal(query);
        try {
            while (featureReader.hasNext()) {
                SimpleFeature feature = featureReader.next();
                bounds.include(feature.getBounds());
            }
        } finally {
            featureReader.close();
        }
        return bounds;
View Full Code Here

            writeImplementation(live);
            String typeName = live.getFeatureType().getTypeName();
            Transaction autoCommit = Transaction.AUTO_COMMIT;
            if (origional != null) {
                ReferencedEnvelope bounds = new ReferencedEnvelope();
                bounds.include(live.getBounds());
                bounds.include(origional.getBounds());
                state.fireFeatureUpdated(featureSource, live, bounds);
                //store.listenerManager.fireFeaturesChanged(typeName, autoCommit, bounds, false);
            } else {
                state.fireFeatureAdded(featureSource, live);
View Full Code Here

            String typeName = live.getFeatureType().getTypeName();
            Transaction autoCommit = Transaction.AUTO_COMMIT;
            if (origional != null) {
                ReferencedEnvelope bounds = new ReferencedEnvelope();
                bounds.include(live.getBounds());
                bounds.include(origional.getBounds());
                state.fireFeatureUpdated(featureSource, live, bounds);
                //store.listenerManager.fireFeaturesChanged(typeName, autoCommit, bounds, false);
            } else {
                state.fireFeatureAdded(featureSource, live);
                // store.listenerManager.fireFeaturesAdded(typeName, autoCommit, ReferencedEnvelope.reference(live.getBounds()), false);
View Full Code Here

            writeImplementation(live);
            String typeName = live.getFeatureType().getTypeName();
            Transaction autoCommit = Transaction.AUTO_COMMIT;
            if (origional != null) {
                ReferencedEnvelope bounds = new ReferencedEnvelope();
                bounds.include(live.getBounds());
                bounds.include(origional.getBounds());
                store.listenerManager.fireFeaturesChanged(typeName, autoCommit,
                        bounds, false);
            } else {
                store.listenerManager.fireFeaturesAdded(typeName, autoCommit,
View Full Code Here

            String typeName = live.getFeatureType().getTypeName();
            Transaction autoCommit = Transaction.AUTO_COMMIT;
            if (origional != null) {
                ReferencedEnvelope bounds = new ReferencedEnvelope();
                bounds.include(live.getBounds());
                bounds.include(origional.getBounds());
                store.listenerManager.fireFeaturesChanged(typeName, autoCommit,
                        bounds, false);
            } else {
                store.listenerManager.fireFeaturesAdded(typeName, autoCommit,
                        ReferencedEnvelope.reference(live.getBounds()), false);
View Full Code Here

                bounds = new ReferencedEnvelope(first.getBounds());
            }

            for (; i.hasNext();) {
                SimpleFeature f = (SimpleFeature) i.next();
                bounds.include(f.getBounds());
            }

            return bounds;
        } finally {
            close(i);
View Full Code Here

    } else {
      this.components.writeCommit(updated,this);
    }
   
    ReferencedEnvelope bounds = new ReferencedEnvelope();
    bounds.include(updated.getBounds());
    bounds.include(original.getBounds());
    this.components
        .getGTstore()
        .getListenerManager()
        .fireFeaturesChanged(updated.getFeatureType().getTypeName(),
View Full Code Here

      this.components.writeCommit(updated,this);
    }
   
    ReferencedEnvelope bounds = new ReferencedEnvelope();
    bounds.include(updated.getBounds());
    bounds.include(original.getBounds());
    this.components
        .getGTstore()
        .getListenerManager()
        .fireFeaturesChanged(updated.getFeatureType().getTypeName(),
            Transaction.AUTO_COMMIT, bounds, true);
View Full Code Here

                false));
      }
    }
    ReferencedEnvelope bounds = new ReferencedEnvelope(
        (CoordinateReferenceSystem) null);
    bounds.include(original.getBounds());
    bounds.include(updated.getBounds());
    components.getGTstore().getListenerManager().fireFeaturesChanged(
        components.getAdapter().getType().getTypeName(),
        transaction,
        bounds,
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.