Examples of within()


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

            default:
                return;
            }
            if (geom != null) {
                System.err.printf("%s within %s? %s\n", geom, bbox, geom.within(bbox));
                if (changeAction.equals(ChangeAction.Create) && geom.within(bbox)
                        || changeAction.equals(ChangeAction.Modify)) {
                    Feature feature = converter.toFeature(entity, geom);
                    target.put(feature);
                }
            }
View Full Code Here

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

            @Override
            public boolean isSatisfied(Object object) {
                if (object instanceof Geometry) {
                    Geometry geom = (Geometry) object;
                    if (swapped) {
                        return geom.within(value);
                    }
                    return value.within(geom);
                }
                return false;
            }
View Full Code Here

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

    }

    static public boolean within(Geometry arg0, Geometry arg1) {
        Geometry _this = arg0;

        return _this.within(arg1);
    }

    static public boolean overlaps(Geometry arg0, Geometry arg1) {
        Geometry _this = arg0;
View Full Code Here

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

            for (int j = 0; j < poly1.length; j++) {
                SimpleFeature tmp2 = (SimpleFeature) poly1[j];
                Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                if (gt2.within(gt)) {
                    return false;
                }
            }
        }
View Full Code Here

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

            for (int j = 0; j < poly1.length; j++) {
                SimpleFeature tmp2 = (SimpleFeature) poly1[j];
                Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                if (gt2.within(gt)) {
                    return true;
                }
            }
        }
View Full Code Here

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

     static public boolean within(Geometry arg0,Geometry arg1)
     {
           if (arg0 == null || arg1 == null) return false;
           Geometry _this = arg0;

           return _this.within(arg1);
     }

     static public boolean overlaps(Geometry arg0,Geometry arg1)
     {
           if (arg0 == null || arg1 == null) return false;
View Full Code Here

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

      e.printStackTrace();
    }

    Geometry gc = new GeometryFactory().createPoint(new Coordinate(point.getX(), point.getY()));

    if (gc.within(g))
      return true;
    else
      return false;

  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.within()

                    SimpleFeature tmp2 = (SimpleFeature) polys[j];
                    Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                    if (gt2 instanceof Point) {
                      Point pt = (Point) gt2;
                        if(!pt.within(ls)){
                          r = true;
                        }
                    }
                }
                if(!r){
View Full Code Here

Examples of com.vividsolutions.jts.geom.Point.within()

    assertEquals(false, p2.equals(p1));
    assertEquals(true, p2.disjoint(p1));
    assertEquals(false, p2.intersects(p1));
    assertEquals(false, p2.touches(p1));
    assertEquals(false, p2.crosses(p1));
    assertEquals(false, p2.within(p1));
    assertEquals(false, p2.contains(p1));
    assertEquals(false, p2.overlaps(p1));
  }

}
View Full Code Here

Examples of fuzzy4j.util.SimpleInterval.within()

        List<Double> values = new ArrayList<Double>();
        values.add(A.apply(overlap.min()));
        values.add(A.apply(overlap.max()));

        if (overlap.within(A.b))
            values.add(1.0);

        return new double[]{ Collections.min(values), Collections.max(values) };
    }
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.