Package org.geotools.geometry.jts

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


      }
    }
    ReferencedEnvelope bounds = new ReferencedEnvelope(
        (CoordinateReferenceSystem) null);
    bounds.include(original.getBounds());
    bounds.include(updated.getBounds());
    components.getGTstore().getListenerManager().fireFeaturesChanged(
        components.getAdapter().getType().getTypeName(),
        transaction,
        bounds,
        false);
View Full Code Here


      components.writeCommit(
          pair.getRight(),
          this);
      ReferencedEnvelope bounds = new ReferencedEnvelope(
          (CoordinateReferenceSystem) null);
      bounds.include(pair.getLeft().getBounds());
      bounds.include(pair.getRight().getBounds());
      components.getGTstore().getListenerManager().fireFeaturesChanged(
          typeName,
          transaction,
          ReferencedEnvelope.reference(pair.getRight().getBounds()),
View Full Code Here

          pair.getRight(),
          this);
      ReferencedEnvelope bounds = new ReferencedEnvelope(
          (CoordinateReferenceSystem) null);
      bounds.include(pair.getLeft().getBounds());
      bounds.include(pair.getRight().getBounds());
      components.getGTstore().getListenerManager().fireFeaturesChanged(
          typeName,
          transaction,
          ReferencedEnvelope.reference(pair.getRight().getBounds()),
          true);
View Full Code Here

        FeatureJSON reader = new FeatureJSON();
        reader.setFeatureType(featureType);
        FeatureIterator<SimpleFeature> it = reader.streamFeatureCollection(file);
        while(it.hasNext()) {
            SimpleFeature f = it.next();
            bounds.include(f.getBounds());
        }
        ft.setNativeBoundingBox(bounds);

        LayerInfo layer = catalog.getFactory().createLayer();
        layer.setResource(ft);
View Full Code Here

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

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

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

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

                }

                if (bbox == null) {
                    bbox = new ReferencedEnvelope(fbbox);
                }
                bbox.include(fbbox);
            }

            return bbox;
        }
        return null;
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.