Search an RTree with a bounding box, collecting matching IDs into a MeosArray.
The result array is reset before the search. After the call, use the returned count and meos_array_get to read the matching IDs. The same array can be reused across multiple searches without reallocating.
- Parameters
-
| [in] | rtree | The RTree to query |
| [in] | op | The search operation: RTREE_OVERLAPS finds boxes that overlap the query, RTREE_CONTAINS finds boxes that contain the query, RTREE_CONTAINED_BY finds boxes contained by the query |
| [in] | query | The bounding box that serves as query |
| [out] | result | MeosArray of int to collect matching IDs (created by the caller with meos_array_create(sizeof(int))) |
- Returns
- Number of matching IDs