bbox property
BoundingBox
get
bbox
Returns the BoundingBox of the LinearRing.
Example:
LinearRing ring = LinearRing([
Coordinate(0, 0),
Coordinate(0, 1),
Coordinate(1, 1),
Coordinate(1, 0),
Coordinate(0, 0),
]);
print(ring.bbox); // BoundingBox(0, 0, 1, 1)
Implementation
BoundingBox get bbox {
List<Point> points = explode().features as List<Point>;
return BoundingBox.fromPoints(points);
}