Skip to content

Instantly share code, notes, and snippets.

View jamesvrt's full-sized avatar

James Townend jamesvrt

View GitHub Profile
@jamesvrt
jamesvrt / points-in-polys.py
Last active December 16, 2022 00:40
Find points within polygons, plot something about the points' attributes
# %%
#### This code is only required to generate some dummy data
import numpy as np
import geopandas as gpd
from shapely.geometry import Point, Polygon
import matplotlib.pyplot as plt
# Make coords for corners of a square
square = np.array([[0, 0], [1, 0], [1, 1], [0, 1]])