contents/Go/go_s2_fast_find.md
S2 is designed to have good performance on large geographic datasets. Most operations are accelerated using an in-memory edge index data structure (S2ShapeIndex). For example if you have a million polygons, finding the polygon(s) that contain a given point typically takes a few hundred nanoseconds. Similarly it is fast to find objects that are near each other, such as finding all the places of business near a given road, or all the roads near a given location.
S2被设计为在大型地理数据集上具有良好的性能。大多数操作使用内存中边缘索引数据结构(S2ShapeIndex)进行加速。例如,如果您有一百万个多边形,找到包含给定点的多边形通常需要几百纳秒。类似地,找到彼此靠近的对象也是快速的,例如查找给定道路附近的所有营业场所或者给定位置附近的所有道路。
空间搜索系列文章:
如何理解 n 维空间和 n 维时空
高效的多维空间点索引算法 — Geohash 和 Google S2
Google S2 中的 CellID 是如何生成的 ?
Google S2 中的四叉树求 LCA 最近公共祖先
神奇的德布鲁因序列
四叉树上如何求希尔伯特曲线的邻居 ?
如何解决空间覆盖最优解问题?
GitHub Repo:Halfrost-Field
Follow: halfrost · GitHub