0

I have a search space of a large number of axis-aligned boxes. A normal spatial index, like an r-tree, will rapidly give me a list of boxes that overlap one search area.

However, I have a large number (hundreds) of potentially overlapping search areas I'd like to query all at once. In other words, I want all objects in my data structure that overlap at least one of these five hundred boxes.

Is there a data structure optimized for this kind of query?

Ben Dilts
  • 10,535
  • 16
  • 54
  • 85

1 Answers1

0

You can use a quadkey and a placeholder. You can create a quadkey by interleave the x-and y co-ordinate. It's use in a morton curve a.k.a z curve.

Micromega
  • 12,486
  • 7
  • 35
  • 72