示例#1
0
            public override double Distance(Geometry operand1, Geometry operand2)
            {
                UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator();

                operand1.SendTo(calc);
                operand2.SendTo(calc);
                return(calc.sum);
            }
示例#2
0
            /// <summary>Indicates the Geometry LineString's length.</summary>
            /// <returns>The operation result.</returns>
            /// <param name="operand">The Operand.</param>
            public override double Length(Geometry operand)
            {
                UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator();
                var tmp = ((GeometryLineString)operand).Points;

                tmp[0].SendTo(calc);
                tmp[1].SendTo(calc);
                return(calc.sum);
            }
示例#3
0
 /// <summary>Indicates the Geometry LineString's length.</summary>
 /// <returns>The operation result.</returns>
 /// <param name="operand">The Operand.</param>
 public override double Length(Geometry operand)
 {
     UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator();
     var tmp = ((GeometryLineString)operand).Points;
     tmp[0].SendTo(calc);
     tmp[1].SendTo(calc);
     return calc.sum;
 }
示例#4
0
 public override double Distance(Geometry operand1, Geometry operand2)
 {
     UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator();
     operand1.SendTo(calc);
     operand2.SendTo(calc);
     return calc.sum;
 }