$npx -y skills add ma-compbio-lab/SkillFoundry --skill geopandas-spatial-join-starterUse this skill to run a deterministic point-in-polygon join with GeoPandas and summarize the result in compact JSON.
| 1 | # GeoPandas Spatial Join Starter |
| 2 | |
| 3 | Use this skill to run a deterministic point-in-polygon join with GeoPandas and summarize the result in compact JSON. |
| 4 | |
| 5 | ## What it does |
| 6 | |
| 7 | - Builds a toy vector dataset with two regions and four observation points. |
| 8 | - Performs a spatial join to assign points to regions. |
| 9 | - Reprojects the joined data to `EPSG:3857` and records projected bounds. |
| 10 | - Emits a reusable JSON summary for downstream geospatial workflows. |
| 11 | |
| 12 | ## When to use it |
| 13 | |
| 14 | - You need a local, no-auth starter for vector geospatial analysis. |
| 15 | - You want a minimal example of `GeoDataFrame`, `sjoin`, and `to_crs`. |
| 16 | - You want a repo-aware wrapper that fixes the `PROJ` data-path issue automatically. |
| 17 | |
| 18 | ## Example |
| 19 | |
| 20 | ```bash |
| 21 | slurm/envs/geospatial/bin/python skills/earth-climate-and-geospatial-science/geopandas-spatial-join-starter/scripts/run_geopandas_spatial_join.py \ |
| 22 | --out scratch/geopandas/spatial_join_summary.json |
| 23 | ``` |
| 24 | |
| 25 | ## Verification |
| 26 | |
| 27 | - Skill-local tests: `python3 -m unittest discover -s skills/earth-climate-and-geospatial-science/geopandas-spatial-join-starter/tests -p 'test_*.py'` |
| 28 | - Repository smoke: `python3 -m unittest tests.smoke.test_frontier_domain_skills -v` |