public static boolean relate ( Geometry geometry1 , Geometry geometry2 , SpatialReference spatialReference , String relation ) { OperatorRelate op = ( OperatorRelate ) factory . getOperator ( Operator . Type . Relate ) ; boolean result = op . execute ( geometry1 , geometry2 , spatialReference , relation , null ) ; return result ; }
Indicates if the given relation holds for the two geometries .