Examples of containIn()


Examples of chunmap.model.geom.Ring.containIn()

    LineString l1 = (LineString) g1;
    Ring r2 = ((Polygon) g2).getShell();
    // 线和环边界分离
    if (im.get(Inner, Border) == EmptyDim
        && im.get(Border, Border) == EmptyDim) {
      if (r2.containIn(l1.firstPoint())) {
        within = true;
        return LineDim;
      }
      return EmptyDim;
    }
View Full Code Here

Examples of chunmap.model.geom.Ring.containIn()

    }
    // 片段在里面
    for (int i = 0, n = tLine.size() - 1; i < n; i++) {
      LineSegment lseg = tLine.getLineSegment(i);
      CPoint mp = lseg.getMiddlePoint();
      if (r2.containIn(mp) && !r2.onLineString(mp)) {
        return LineDim;
      }
    }
    return EmptyDim;
  }
View Full Code Here

Examples of chunmap.model.geom.Ring.containIn()

    // 在边界
    if (im.get(Inner, Border) != EmptyDim)
      return EmptyDim;

    // 内部
    if (r2.containIn(p1.getCoordinate()))
      return PointDim;

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