public static bool WithinDistance(this Polygon polygon, Multipoint multipoint, double distance) { if (Null(polygon, multipoint)) { return(false); } return(multipoint.Distance(polygon) < distance); }
public static bool WithinDistance(this Multipoint multipoint, Polygon polygon, double distance) { if (Null(multipoint, polygon)) { return(false); } return(multipoint.Extent().Buffer(distance).Intersects(polygon.Extent()) && multipoint.Distance(polygon) < distance); }
public static double?Distance(this Polygon polygon, Multipoint multipoint) { if (Null(polygon, multipoint)) { return(null); } return(multipoint.Distance(polygon)); }
public static double?Distance(this Polyline polyline, Multipoint multipoint) { if (Null(polyline, multipoint)) { return(null); } return(multipoint.Distance(polyline)); }
public static bool WithinDistance(this Multipoint multipoint1, Multipoint multipoint2, double distance) { if (Null(multipoint1, multipoint2)) { return(false); } return(multipoint1.Extent().Buffer(distance).Intersects(multipoint2.Extent()) && multipoint1.Distance(multipoint2) < distance); }