bbox property

  1. @override
BoundingBox get bbox
override

Returns the BoundingBox of the LineString

Example:

LineString([Coordinate(1, 2), Coordinate(3, 4)]).bbox; // BoundingBox(1, 2, 3, 4)

Implementation

@override
BoundingBox get bbox {
  List<Point> points = explode();
  return BoundingBox.fromPoints(points);
}