Examples of disjoint()


Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

        .fromText("POLYGON((-10 -10, 10 -10, 10 10, -10 10, -10 -10), (-5 -5, -5 5, 5 5, 5 -5, -5 -5))");
    assertTrue(g.geometryType().equals("Polygon"));
    assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
  }

  @Test
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

    assertTrue(g.geometryType().equals("Polygon"));
    assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
  }

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

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

    assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
  }

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

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

      assertTrue(g.geometryType().equals("MultiPolygon")); // the type is
                                  // reduced
      assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.convertToMulti() == g);
    }
   
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

                                  // reduced
      assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.convertToMulti() == g);
    }
   
    {
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

      assertTrue(!g.contains(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(g.contains(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(!g.contains(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(0 0)")));
      assertTrue(!g.disjoint(OGCGeometry.fromText("POINT(9 9)")));
      assertTrue(g.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
      assertTrue(g.convertToMulti() == g);
    }
   
    {
      OGCGeometry g = OGCGeometry
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

    OGCGeometry u = g.union(g2);
    assertTrue(u.geometryType().equals("MultiPolygon"));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!u.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(100 100)")));
  }
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

    assertTrue(u.geometryType().equals("MultiPolygon"));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!u.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(100 100)")));
  }

  @Test
View Full Code Here

Examples of com.esri.core.geometry.ogc.OGCGeometry.disjoint()

    assertTrue(!u.contains(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(!u.contains(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(0 0)")));
    assertTrue(!u.disjoint(OGCGeometry.fromText("POINT(9 9)")));
    assertTrue(u.disjoint(OGCGeometry.fromText("POINT(-20 1)")));
    assertTrue(u.contains(OGCGeometry.fromText("POINT(100 100)")));
  }

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

Examples of com.vividsolutions.jts.geom.Geometry.disjoint()

                                switch (spatialOp) {
                                case SpatialOperator.EQUALS:
                                    geometryMatches = geometry.equals(EPSG4326_geometry);
                                    break;
                                case SpatialOperator.DISJOINT:
                                    geometryMatches = geometry.disjoint(EPSG4326_geometry);
                                    break;
                                case SpatialOperator.INTERSECTS:
                                    geometryMatches = geometry.intersects(EPSG4326_geometry);
                                    break;
                                case SpatialOperator.TOUCHES:
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.