Package org.geotools.geometry.jts

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


                SimpleFeatureType schema = getSchema();
                ReferencedEnvelope bounds = new ReferencedEnvelope(
                        schema.getCoordinateReferenceSystem());
                bounds.include(header.minX(), header.minY());
                bounds.include(header.minX(), header.minY());

                Envelope env = new Envelope(header.minX(), header.maxX(), header.minY(),
                        header.maxY());

                CoordinateReferenceSystem crs = null;
View Full Code Here


                            feature.setAttributes(update.getAttributes());
                            writer.write();

                            // notify                       
                            ReferencedEnvelope bounds = new ReferencedEnvelope((CoordinateReferenceSystem)null);
                            bounds.include(feature.getBounds());
                            bounds.include(update.getBounds());
                            store.listenerManager.fireFeaturesChanged(typeName,
                                transaction, bounds, true);
                        } catch (IllegalAttributeException e) {
                            throw new DataSourceException("Could update " + fid,
View Full Code Here

                            writer.write();

                            // notify                       
                            ReferencedEnvelope bounds = new ReferencedEnvelope((CoordinateReferenceSystem)null);
                            bounds.include(feature.getBounds());
                            bounds.include(update.getBounds());
                            store.listenerManager.fireFeaturesChanged(typeName,
                                transaction, bounds, true);
                        } catch (IllegalAttributeException e) {
                            throw new DataSourceException("Could update " + fid,
                                e);
View Full Code Here

    ReferencedEnvelope bounds = new ReferencedEnvelope(getType().getCoordinateReferenceSystem());
    for (Iterator itr = getValue().iterator(); itr.hasNext();) {
      Property property = (Property) itr.next();
      if (property instanceof GeometryAttribute) {
         bounds.include(((GeometryAttribute)property).getBounds());
      }
    }

    return bounds;
  }
View Full Code Here

            diff.modify(live.getID(), current);



            ReferencedEnvelope bounds = new ReferencedEnvelope((CoordinateReferenceSystem)null);
            bounds.include(live.getBounds());
            bounds.include(current.getBounds());
            fireNotification(FeatureEvent.FEATURES_CHANGED, bounds);
            live = null;
            current = null;
        } else if ((live == null) && (current != null)) {
View Full Code Here



            ReferencedEnvelope bounds = new ReferencedEnvelope((CoordinateReferenceSystem)null);
            bounds.include(live.getBounds());
            bounds.include(current.getBounds());
            fireNotification(FeatureEvent.FEATURES_CHANGED, bounds);
            live = null;
            current = null;
        } else if ((live == null) && (current != null)) {
            // We have new content to record
View Full Code Here

            if (resultsToAdd instanceof BoundsResult) {
                BoundsResult boundsToAdd = (BoundsResult) resultsToAdd;
               
                //add one set to the other (to create one big unique list)
                ReferencedEnvelope newBounds = new ReferencedEnvelope(bbox);
                newBounds.include( boundsToAdd.getValue());

                return new BoundsResult(newBounds);
            } else {
                throw new IllegalArgumentException(
                    "The CalcResults claim to be compatible, but the appropriate merge method has not been implemented.");
View Full Code Here

 
               FeatureReader<SimpleFeatureType, SimpleFeature> reader = boundsReader();
               try {
                 while (reader.hasNext()) {
                   feature = reader.next();
                   bounds.include(feature.getBounds());
                 }
               } finally {
                 reader.close();
               }
          } catch (IllegalAttributeException e) {
View Full Code Here

                if( bbox != null ){
                    if( bounds == null ){
                        bounds = new ReferencedEnvelope( bbox );
                    }
                    else {
                        bounds.include( bbox );
                    }
                }
            }
        } finally {
            it.close();
View Full Code Here

                if (reader.hasNext()) {
                    SimpleFeature f = reader.next();
                    bounds.init(f.getBounds());
                    while (reader.hasNext()) {
                        f = reader.next();
                        bounds.include(f.getBounds());
                    }
                }
            } finally {
                reader.close();
            }
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.