-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.47..v0.2.48 changeset GeometryUtils.h
Garret Voltz edited this page Sep 27, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/GeometryUtils.h b/hoot-core/src/main/cpp/hoot/core/util/GeometryUtils.h
index 6bec338..ef8ad7c 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/GeometryUtils.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/GeometryUtils.h
@@ -72,7 +72,8 @@ public:
*
* Taken from http://www.movable-type.co.uk/scripts/latlong.html
*/
- static geos::geom::Coordinate calculateDestination(const geos::geom::Coordinate& start, Degrees bearing, Meters distance);
+ static geos::geom::Coordinate calculateDestination(
+ const geos::geom::Coordinate& start, Degrees bearing, Meters distance);
/**
* Returns the distance between two coordinates using the haversine formula and a mean earth
@@ -128,6 +129,13 @@ public:
*/
static QString envelopeToConfigString(const geos::geom::Envelope& bounds);
+ /**
+ * Creates a rectangular map representing a bounding box; useful for debugging
+ *
+ * @param bounds bounding box
+ * @return a bounding box map
+ */
+ static OsmMapPtr createMapFromBounds(const geos::geom::Envelope& bounds);
};
}