Should `Feature` derive from `Bounds`?
clarisma opened this issue · comments
It would make sense, but the tricky part are the default methods of Bounds
:
contains
:feature.contains(otherFeature)
is ambiguous -- it isn't clear that this check only applies to the bboxes of the featuresintersects
:feature.intersects(otherFeature)
is also ambiguous, it returnstrue
if only the bboxes intersect, but user might expect a geometry intersection test
Maybe keep Bounds
simple and implement these as static methods in Box
?