用网格+前缀树提升空间查询效率,处理复杂地理数据更准更快。
GP-Tree: An in-memory spatial index combining adaptive grid cells with a prefix tree for efficient spatial querying
- 用细粒度网格替代传统包围盒,更精准表示复杂地理对象
- 通过前缀树结构减少查询路径,实测查询效率提升近10倍
- 适合大规模地理数据场景,尤其轨迹、行政区划等复杂形状
高效的空间索引对处理大规模空间数据至关重要。传统索引如STR-Tree和Quad-Tree基于最小包围矩形(MBR)等粗略近似组织空间对象,难以准确表示复杂空间对象(如行政区边界和轨迹),限制了过滤精度与查询性能。为此,我们提出GP-Tree,一种将空间对象的网格近似单元组织成前缀树结构的细粒度空间索引。该方法通过用细粒度网格代替粗略的MBR,显著提升过滤能力;前缀树利用父子网格编码的共用前缀优化数据组织与查询效率。此外,引入树剪枝和节点优化策略,进一步压缩搜索路径与内存开销。我们在多种真实数据集上实现了范围查询、距离查询和k近邻查询等操作。大量实验表明,GP-Tree显著优于传统索引,在查询效率上最高提升一个数量级。
原文摘要 · Abstract (English)
Efficient spatial indexing is crucial for processing large-scale spatial data. Traditional spatial indexes, such as STR-Tree and Quad-Tree, organize spatial objects based on coarse approximations, such as their minimum bounding rectangles (MBRs). However, this coarse representation is inadequate for complex spatial objects (e.g., district boundaries and trajectories), limiting filtering accuracy and query performance of spatial indexes. To address these limitations, we propose GP-Tree, a fine-grained spatial index that organizes approximated grid cells of spatial objects into a prefix tree structure. GP-Tree enhances filtering ability by replacing coarse MBRs with fine-grained cell-based approximations of spatial objects. The prefix tree structure optimizes data organization and query efficiency by leveraging the shared prefixes in the hierarchical grid cell encodings between parent and child cells. Additionally, we introduce optimization strategies, including tree pruning and node optimization, to reduce search paths and memory consumption, further enhancing GP-Tree's performance. Finally, we implement a variety of spatial query operations on GP-Tree, including range queries, distance queries, and k-nearest neighbor queries. Extensive experiments on real-world datasets demonstrate that GP-Tree significantly outperforms traditional spatial indexes, achieving up to an order-of-magnitude improvement in query efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。