geodesy.bounding_box

Bounding box functions for geographic maps.

geodesy.bounding_box.getLatLong(bbox)[source]

Get the tuple of minimum and maximum latitudes and longitudes.

Parameters:bboxgeographic_msgs/BoundingBox.
Returns:(min_lat, min_lon, max_lat, max_lon)
geodesy.bounding_box.is2D(bbox)[source]

Two-dimensional bounding box predicate.

Parameters:bboxgeographic_msgs/BoundingBox.
Returns:True if bbox matches any altitude.
geodesy.bounding_box.isGlobal(bbox)[source]

Global bounding box predicate.

Parameters:bboxgeographic_msgs/BoundingBox.
Returns:True if bbox matches any global coordinate.
geodesy.bounding_box.makeBounds2D(min_lat, min_lon, max_lat, max_lon)[source]

Create a 2D geographic bounding box (ignoring altitudes).

Parameters:
  • min_lat – Minimum latitude.
  • min_lon – Minimum longitude.
  • max_lat – Maximum latitude.
  • max_lon – Maximum longitude.
Returns:

geographic_msgs/BoundingBox object.

geodesy.bounding_box.makeBounds3D(min_lat, min_lon, min_alt, max_lat, max_lon, max_alt)[source]

Create a 3D geographic bounding box (including altitudes).

Parameters:
  • min_lat – Minimum latitude.
  • min_lon – Minimum longitude.
  • min_alt – Minimum altitude.
  • max_lat – Maximum latitude.
  • max_lon – Maximum longitude.
  • max_alt – Maximum altitude.
Returns:

geographic_msgs/BoundingBox object.

geodesy.bounding_box.makeGlobal()[source]

Create a global bounding box, which matches any valid coordinate.

Returns:geographic_msgs/BoundingBox object.