May 2019
Beginner
170 pages
4h 9m
English
First, we need to create a mask where we store whether a certain point is inside the geofence or not. We first read the geofence_polygons from the dataset provided with Notebook. Upload it first in Google Colab:
geofence_polygons = gpd.read_file('geofence_polygons.gpkg')geofence_polygons

Let's plot and overlay geofence_polygons and filtered_trackid points on top of each other:
# Plot filtered_tracid points over geofence polygons fig, ax = plt.subplots(figsize=(10,10))geofence_polygons.plot(ax=ax, color='gray')filtered_trackid.plot(ax=ax, markersize=1)plt.tight_layout()#plt.savefig('polygon_lines.png')#plt.axis('off') ...Read now
Unlock full access