Skip to content

Instantly share code, notes, and snippets.

View Nialls's full-sized avatar
:octocat:
Shipping love

Niall Jones Nialls

:octocat:
Shipping love
View GitHub Profile
@Nialls
Nialls / voronoi.py
Created April 11, 2023 07:21
Voronoi
import geopandas as gpd
from shapely.geometry import Polygon, MultiPolygon, Point
from shapely.ops import voronoi_diagram
from google.cloud import bigquery
# Set up the BigQuery client
# Make sure you have GOOGLE_APPLICATION_CREDENTIALS environment variable set
bigquery_client = bigquery.Client()
# Read data from BigQuery into a GeoDataFrame