Пример #1
0
 /// <summary>
 /// Returns true if the coordinate is inside the polygon being filtered against.
 /// </summary>
 /// <returns></returns>
 private bool IsInsidePoly(double latitude, double longitude)
 {
     if (!_box.Contains(longitude, latitude))
     { // use the bounding box checks as a negative-first.
         return(false);
     }
     return(_poly.Contains(new GeoCoordinate(latitude, longitude)));
 }