Examples of mergeEnvelop()


Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

        EnvelopeBuf eb = new EnvelopeBuf();
        for(Geometry g : gs){
          ShapeFeature f = createFeature(g);
            fc.insert(f);
            f.setFeatureClass(fc);
            eb.mergeEnvelop(g.getEnvelop());
        }

        fc.setMetadata( new LayerMetadata("Geometry",gs.get(0).getGeometryType()));
        fc.setEnvelope(eb.toEnvelop());
View Full Code Here

Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

      FeatureList fc = new FeatureList();
        EnvelopeBuf eb = new EnvelopeBuf();
        for (Feature f : fs)
        {
            fc.insert(f);
            eb.mergeEnvelop(f.getEnvelop());
        }

        fc.setMetadata (new LayerMetadata("Feature",GeometryType.GeometryCollection));
        fc.setEnvelope ( eb.toEnvelop());
View Full Code Here

Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

    {
        final EnvelopeBuf eb = new EnvelopeBuf();
        this.each(new VisitAction(){
      @Override
      public void execute(Feature f) {
        eb.mergeEnvelop(f.getEnvelop());
      }});
        envelope = eb.toEnvelop();
    }
}
View Full Code Here

Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

  @Override
  protected Envelope calculateEnvelop() {
    EnvelopeBuf env = new EnvelopeBuf();
    for (E g : geometrys) {
      env.mergeEnvelop(g.getEnvelop());
    }
    return env.toEnvelop();
  }

  @Override
View Full Code Here

Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

  }

  public void reComputeEnvelop() {
    EnvelopeBuf env = new EnvelopeBuf();
    for (Layer lyr : layers) {
      env.mergeEnvelop(lyr.getEnvelop());
    }
    envelop = env.toEnvelop();
  }

  public Layer getDecorateLayer() {
View Full Code Here

Examples of chunmap.model.elem.EnvelopeBuf.mergeEnvelop()

          ShapeFeature f = createFeature(g);
            layer.getFeatures().insert(f);
            f.setFeatureClass(layer.getFeatures());

            EnvelopeBuf eb = new EnvelopeBuf(layer.getEnvelop());
            eb.mergeEnvelop(g.getEnvelop());
            ((FeatureSet)layer.getFeatures()).setEnvelope(eb.toEnvelop());
            map.getLayerCollection().reComputeEnvelop();
        }
    }
    private ShapeFeature createFeature(Geometry g)
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.