Open zerobandwidth opened 6 years ago
Add a calculateBoundingBox() method to GeoJsonObject, which would calculate (and reset) the object's bbox based on the instance's other attributes.
calculateBoundingBox()
GeoJsonObject
bbox
abstract
Feature
this.getGeometry().calculateBoundingBox()
FeatureCollection
Geometry
LineString
MultiPoint
MultiLineString
MultiPolygon
Polygon
Point
The order of the four double values must correspond to the order assumed in the definition of the bbox member of GeoJsonObject (whatever that is).
double
Consider calling this method automatically in any method that alters the shape of the object, such that the bounding box is updated in real time.
Add a
calculateBoundingBox()
method toGeoJsonObject
, which would calculate (and reset) the object'sbbox
based on the instance's other attributes.GeoJsonObject
abstract
to force implementation classes to provide it.Feature
this.getGeometry().calculateBoundingBox()
.FeatureCollection
Feature
in the collection, then draw a box around all results.Geometry
abstract
.LineString
MultiPoint
's implementation?MultiLineString
MultiPoint
MultiPolygon
Polygon
, then draw a box around all of those boxes.Point
Polygon
The order of the four
double
values must correspond to the order assumed in the definition of thebbox
member ofGeoJsonObject
(whatever that is).Consider calling this method automatically in any method that alters the shape of the object, such that the bounding box is updated in real time.