| 41 | geospatialTypes_.insert(geospatialTypes.begin(), geospatialTypes.end()); |
| 42 | } |
| 43 | void merge(const WKBGeometryBounder& other) { |
| 44 | if (!isValid() || !other.isValid()) { |
| 45 | invalidate(); |
| 46 | return; |
| 47 | } |
| 48 | box_.merge(other.box_); |
| 49 | geospatialTypes_.insert(other.geospatialTypes_.begin(), other.geospatialTypes_.end()); |
| 50 | } |
| 51 | |
| 52 | // Get the bounding box for the merged geometries. |
| 53 | const BoundingBox& bounds() const { |