arXiv · 2306.04316
Point in polygon calculation using vector geometric methods with application to geospatial data
Abstract
In this work, we designed algorithms for the point in polygon problem based on the ray casting algorithm using equations from vector geometry. The algorithms were implemented using the python programming language. We tested the algorithm against the point in polygon algorithms used by the shapely (and by extension geopandas) library and the OpenCV library using points from the google Open Buildings project. Our algorithm in pure python performed much better than the shapely implementation. It also performed better than the OpenCV implementation when combined with the Numba optimization library. We also performed simulations to verify that our algorithm performance was of the order O(n).
Explore related subjects
Keep this discovery
Eyram Schwinger, Ralph Twum, Thomas Katsekpor, Gladys Schwinger. 2023-06-07. Point in polygon calculation using vector geometric methods with application to geospatial data. https://arxiv.org/abs/2306.04316
Cite the original work for its findings. Save a collection to share your selection of sources.