You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the visitItem() method in org.locationtech.jts.index.ItemVisitor the class should not be void. Instead it should be a boolean that allows early-termination by the caller (false is "don't continue").
One use case is using a spatial index for potential point-in-area queries. Rather than collecting all candidates then running point-in-area tests, one can run the test on each candidate within visitItem(), and early exit upon finding the first match. Here we'd save work searching the indexed structure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I think the
visitItem()method inorg.locationtech.jts.index.ItemVisitorthe class should not be void. Instead it should be a boolean that allows early-termination by the caller (falseis "don't continue").One use case is using a spatial index for potential point-in-area queries. Rather than collecting all candidates then running point-in-area tests, one can run the test on each candidate within
visitItem(), and early exit upon finding the first match. Here we'd save work searching the indexed structure.Beta Was this translation helpful? Give feedback.
All reactions