Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Get rid of Boost RTree in symbol annotation code #13232

Closed

Description

@mourner

Platform: Core
Mapbox SDK version: Master

Currently the only place where we use Boost's RTree is for indexing symbol annotations:

using SymbolAnnotationTree = boost::geometry::index::rtree<std::shared_ptr<const SymbolAnnotationImpl>, boost::geometry::index::rstar<16, 4>>;

However, RTree is an overkill here — since we only index points (not rectangles), and search by tile coordinate (not generic bounding box), we could probably replace RTree with an ordinary std::map with max zoom tile quadkey used as a key. Since std::map is ordered, we could then query lower zoom tiles by using map.lower_bound and map.upper_bound with a zero-padded quadkey to iterate over all features in a tile efficiently.

This would be a good step towards eliminating Boost as a dependency in GL Native.

cc @tmpsantos @ivovandongen

Activity

  1. self-assigned this
    on Oct 30, 2018
  2. added
    archived
    on Aug 5, 2019
  3. stale commented on Aug 7, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  4. reopened this on Aug 7, 2019
  5. removed
    archived
    on Aug 7, 2019
  6. added
    archived
    on Feb 3, 2020
  7. stale commented on Feb 3, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  8. removed
    archived
    on Feb 3, 2020
  9. added
    archived
    on Aug 1, 2020
  10. stale commented on Aug 1, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

archivedrefactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions