/// <summary> /// Returns the extent of this point. /// </summary> /// <param name="point"></param> /// <returns></returns> public static Envelope Extent(this Point point) { AssertNotNull(point); var extent = new Envelope { xmin = point.x, ymin = point.y, xmax = point.x, ymax = point.y, spatialReference = point.spatialReference }; return extent; }
private static bool Intersects(this Envelope extent1, Envelope extent2) { return extent1.xmin <= extent2.xmax && extent1.ymin <= extent2.ymax && extent1.xmax >= extent2.xmin && extent1.ymax >= extent2.ymin; }