protected Corner GetRandomLandCornerAboveTheHeight(IMap map, double minStreamHeight) { Corner current; do { current = map.GetRandomCorner(); } while (!(current.IsLand && current.Elevation > minStreamHeight)); return current; }