Package org.geotools.geometry.iso.coordinate

Examples of org.geotools.geometry.iso.coordinate.EnvelopeImpl


    tIM.set(Location.EXTERIOR, Location.EXTERIOR, 2);

    // if the Geometries don't overlap there is nothing to do
//    if (!arg[0].getGeometry().getEnvelopeInternal().intersects(
//        arg[1].getGeometry().getEnvelopeInternal())) {
    EnvelopeImpl env1 = (EnvelopeImpl) arg[0].getGeometry().getEnvelope();
    EnvelopeImpl env2 = (EnvelopeImpl) arg[1].getGeometry().getEnvelope();
    if (!env1.intersects(env2)) {
      computeDisjointIM(tIM);
      return tIM;
    }
    this.arg[0].computeSelfNodes(this.li, false);
View Full Code Here


    // set the curve envelope
    Iterator<? extends CurveSegment> it = segments.iterator();
    CurveSegmentImpl cs0 = (CurveSegmentImpl) it.next();
    cs0.setCurve(this);
    this.envelope = new EnvelopeImpl(cs0.getEnvelope());

    Position p0 = cs0.getStartPosition();

    // Änderung durch Sanjay, da in bisheriger Version nicht der Fall
    // berücksichtigt wurde, dass nur 1 CurveSegment existiert
View Full Code Here

  /* (non-Javadoc)
   * @see org.geotools.geometry.featgeom.root.GeometryImpl#getEnvelope()
   */
  public Envelope getEnvelope() {
    EnvelopeImpl env = new EnvelopeImpl(new DirectPositionImpl( getCoordinateReferenceSystem(), (new double[] {Double.NaN, Double.NaN})) );
    Iterator<? extends Geometry> elementIter = this.elements.iterator();
    while (elementIter.hasNext()) {
      env.add((EnvelopeImpl)((Primitive)elementIter.next()).getEnvelope());
    }
    return env;   
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.coordinate.EnvelopeImpl

Copyright © 2018 www.massapicom. 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.