Fix Relate for Point/MultiPoint (broken just yesterday) #1322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGES.mdif knowledge of this change could be valuable to users.I broke this in 44816eb (merged yesterday, not yet released) by attempting to reuse the bbox from the geometry graph's RTree.
The problem was that the RTree only contains the Geometry's segments, but Point and MultiPoint have no segments - they're zero-dimensional geometries.
I don't often use
Relatewith zero dimensional geometries, so it's only luck that an unrelated example I was writing triggered an assert!To be clear, we're still getting most of the perf benefit from #1317 - we're still caching the bbox. Now we have to compute it 1 time. Previously we were trying to compute it zero times by re-using the one from the RTree.
== PERF
There was only a small loss from this change, indicating it was probably a bad
idea from the start.