Spatial joins
Provides techniques for performing spatial operations like joins, contains, and distance calculations to identify relations between geographic features.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill spatial-joinsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 134 tokens by cl100k_base, as published. Nobody here has run it
Spatial Operations with GeoPandas
Point-in-Polygon
Use geopandas.sjoin() to identify points contained within specific polygons (e.g., plates).
# Join points and polygons
joined = gpd.sjoin(points_gdf, polygons_gdf, how='inner', predicate='within')
Distance Calculation
To find the distance from points to boundaries, reproject to an appropriate CRS (meters) and calculate the distance to the nearest boundary.
# Find distance from each point to the nearest polygon boundary
distances = points_gdf.distance(boundaries_gdf.unary_union)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.