Package chunmap.model.elem

Examples of chunmap.model.elem.PointLineBag


        .getCursorPoint().getY());
  }

  public PointLineBag intersection(MonotonyChain other)
    {
        PointLineBag geometrys=new PointLineBag();
        intersectionSub(other, geometrys, true);
        return geometrys;
    }
View Full Code Here


        intersectionSub(other, geometrys, true);
        return geometrys;
    }
    public boolean hasIntersection(MonotonyChain other)
    {
        PointLineBag geometrys=new PointLineBag();
        return intersectionSub(other, geometrys, false);
    }
View Full Code Here

  @Override
  protected int inner2innerDim(Geometry g1, Geometry g2) {
    LineString l1 = (LineString) g1;
    LineString l2 = (LineString) g2;

    PointLineBag bag = l1.intersection(l2);

    if (bag.getLineStringSize() > 0)
      return LineDim;
    else if (bag.getPointSize() > 0) {
      if (isInner(l1, l2, bag.getPointList())) {
        return PointDim;
      }
    }
    return EmptyDim;
  }
View Full Code Here

    //------------------------------------------------------------------------交集

    public static PointLineBag intersection(CoordinateSeq me, CoordinateSeq l2)
    {
        PointLineBag geometrys = new PointLineBag();
        List<MonotonyChain> chains1 = getMonotonyChains(me);
        List<MonotonyChain> chains2 = getMonotonyChains(l2);
        for (MonotonyChain chain1 : chains1)
        {
            for (MonotonyChain chain2 : chains2)
            {
                geometrys.add(chain1.intersection(chain2));
            }
        }
        return geometrys;
    }
View Full Code Here

TOP

Related Classes of chunmap.model.elem.PointLineBag

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.