Tagged Questions
1
vote
0answers
121 views
How to update polygon field with point count for multiple rows? (Temporal point-in-polygon)
I have a shapefile with several regions. It contains basic info like ID, Code, Name1, Name2, etc.
It is overlaid with a shapefile of points (nearly 200k). Each point represents an event with a type ...
5
votes
2answers
1k views
Point-in-polygon using Python and OGR
I want to use OGR in Python to write a simple point-in-polygon test:
def point_in_polygon(point, polygon):
"""
point : [longitude, latitude]
polygon : [(lon1, lat1), (lon2, lat2), ..., ...
