Package chunmap.model.relate

Examples of chunmap.model.relate.IntersectionMatrix.match()


    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, pg).getIM();
    IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(p2, pg).getIM();

    assertTrue(rt.match(IntersectionMatrix.WithinsPattern));
    assertFalse(rt2.match(IntersectionMatrix.WithinsPattern));
    assertTrue(rt2.match(IntersectionMatrix.DisjointPattern));

  }

  @Test
View Full Code Here


    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, pg).getIM();
    IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(p2, pg).getIM();

    assertTrue(rt.match(IntersectionMatrix.WithinsPattern));
    assertFalse(rt2.match(IntersectionMatrix.WithinsPattern));
    assertTrue(rt2.match(IntersectionMatrix.DisjointPattern));

  }

  @Test
  public void testGetIM2() {
View Full Code Here

    IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(p2, pg).getIM();
    IntersectionMatrix rt3 = ComputeImFactory.getInstance().getImComputer(p3, pg).getIM();

    assertTrue(rt.match(IntersectionMatrix.DisjointPattern));
    assertTrue(rt2.match(IntersectionMatrix.WithinsPattern));
    assertTrue(rt3.match(IntersectionMatrix.DisjointPattern));

  }

}
View Full Code Here

    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(
        ls, ls2).getIM();
    // LineString_LineString l2l = new LineString_LineString(ls, ls2);
    // IntersectionMatrix rt = l2l.getIM();
    assertTrue(rt.match(IntersectionMatrix.OverlapPatternLL));

    IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(
        ls3, ls).getIM();
    assertTrue(rt2.match(IntersectionMatrix.WithinsPattern));
View Full Code Here

    // IntersectionMatrix rt = l2l.getIM();
    assertTrue(rt.match(IntersectionMatrix.OverlapPatternLL));

    IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(
        ls3, ls).getIM();
    assertTrue(rt2.match(IntersectionMatrix.WithinsPattern));

    IntersectionMatrix rt3 = ComputeImFactory.getInstance().getImComputer(
        ls4, ls).getIM();
    assertTrue(rt3.match(IntersectionMatrix.CrossesPatternLL));
  }
View Full Code Here

        ls3, ls).getIM();
    assertTrue(rt2.match(IntersectionMatrix.WithinsPattern));

    IntersectionMatrix rt3 = ComputeImFactory.getInstance().getImComputer(
        ls4, ls).getIM();
    assertTrue(rt3.match(IntersectionMatrix.CrossesPatternLL));
  }

  @Test
  public void testGetIM2() {
    WktReader wkt = new WktReader();
View Full Code Here

    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(
        ls2, ls).getIM();
    // LineString_LineString l2l = new LineString_LineString(ls, ls2);
    // IntersectionMatrix rt = l2l.getIM();
    assertTrue(!rt.match(IntersectionMatrix.DisjointPattern));
  }

  @Test
  public void testGetIM3() {
    WktReader wkt = new WktReader();
View Full Code Here

    LineString ls = (LineString) g;
    GeoPoint p1 = new GeoPoint(1, 0);

    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, ls).getIM();

    assertTrue(rt.match(IntersectionMatrix.DisjointPattern));
  }

  @Test
  public void testGetIM2() {
    WktReader wkt = new WktReader();
View Full Code Here

    LineString ls = (LineString) g;
    GeoPoint p1 = new GeoPoint(0, 0);

    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, ls).getIM();

    assertFalse(rt.match(IntersectionMatrix.DisjointPattern));
  }

  @Test
  public void testMultiPoint2LineString() {
    WktReader wkt = new WktReader();
View Full Code Here

    LineString ls = (LineString) g;
    GeoPoint p1 = new GeoPoint(1.0, 1.0);

    IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(p1, ls).getIM();

    assertTrue(rt.match(IntersectionMatrix.DisjointPattern));
  }
}
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.