This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients berker.peksag, erlendaasland
Date 2021-03-09.21:54:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ref. bpo-43440

Now that both Windows and macOS builds compile SQLite with R*Tree support, we should consider adding support for R*Tree callbacks.

SQLite has two API's:
- sqlite3_rtree_query_callback() for SQLite 3.8.5 and newer.
- sqlite3_rtree_geometry_callback() for SQLite pre 3.8.5.

I suggest using the new API only, because it is more flexible, and it is also the one recommended by SQLite.


Python API:

Too long function name?

As for the callback spec, I'm not sure what's the most pythonic approach?
callback(coords, *params, **query_info):
  coords   # array of coordinates of node or entry to check
  *params  # parameters passed to the SQL function
  **query_info # the rest of the relevant sqlite3_rtree_query_info members
  return (visibility, score)
Date User Action Args
2021-03-09 21:54:25erlendaaslandsetrecipients: + erlendaasland, berker.peksag
2021-03-09 21:54:25erlendaaslandsetmessageid: <>
2021-03-09 21:54:25erlendaaslandlinkissue43454 messages
2021-03-09 21:54:25erlendaaslandcreate