Package com.vividsolutions.jts.geom

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


                                    break;
                                case SpatialOperator.CONTAINS:
                                    geometryMatches = geometry.contains(EPSG4326_geometry);
                                    break;
                                case SpatialOperator.OVERLAPS:
                                    geometryMatches = geometry.overlaps(EPSG4326_geometry);
                                    break;
                                }
                            } catch (ParseException e) {
                                //Transforms the exception into an SQLException.
                                //Very unlikely to happen though...
View Full Code Here


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

    }

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

        return _this.overlaps(arg1);
    }

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

            for (int j = 0; j < poly2.length; j++) {
                SimpleFeature tmp2 = (SimpleFeature) poly2[j];
                LOGGER.finest("Polgon overlap test against:"+tmp2.getID() );               
                Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                if (gt2.overlaps(gt) != expected) {
                  results.error( tmp, "Polygon "+typeRef1+" overlapped Polygon "+typeRef2+"("+tmp2.getID()+") was not "+expected );
                  success = false;
                }
            }
        }
View Full Code Here

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

           return _this.overlaps(arg1);
     }

     static public boolean relatePattern(Geometry arg0,Geometry arg1,String arg2)
     {
           if (arg0 == null || arg1 == null || arg2 == null) return false;
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.