Commit 409baa25 authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Add fallback lazy bbox calculation

parent 5af27f3e
Pipeline #12321 passed with stage
in 2 minutes and 37 seconds
......@@ -92,7 +92,10 @@ public abstract class CityObject extends GmlElement {
this.bbox = bbox;
}
public BoundingBox getBbox(){
public synchronized BoundingBox getBbox(){
if (bbox == null){
this.setBbox(BoundingBox.of(this));
}
return bbox;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment