Hacker News new | ask | show | jobs
by gfrangakis 3027 days ago
S2 can also output interior coverings, which will return only the cells in a covering that are fully contained in a polygon. So if you encounter a point (or any cell) whose parent is in an interior covering, you don't have to do any additional checks to produce an exact result (whereas on the boundary, you may want to do a point-in-polygon test to be exact).
1 comments

Right! I forgot to mention that. You can totally skip the entire point-in-polygon for interior cells. So good.