geopandas
하는 일
GeoPandas는 Python으로 지도 위의 지리 데이터를 다루는 도구입니다. 도시의 위치나 국경 같은 공간 정보를 정리하고 분석하도록 돕습니다.
사용하는 경우
- ✓지도에서 점 사이의 거리를 분석해야 할 때.
- ✓서로 다른 지역의 면적을 비교할 때.
- ✓여러 지도 레이어의 정보를 결합할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/geopandas/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지도 파일을 사용해 모든 브라질 주의 면적을 계산하려면 어떻게 해야 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
GeoPandas는 표 형태의 데이터 구조로 지도 정보를 저장합니다. 이 데이터에서 거리나 면적 계산 같은 공간 연산을 직접 수행할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
GeoPandas
Use GeoPandas for planar vector data represented as pandas-like GeoSeries and
GeoDataFrame objects. This skill targets stable GeoPandas 1.2.0 (released
2026-09-28). The stable website currently carries a development build label;
release-specific behavior below was checked against the v1.2.0 source and wheel.
Reproducible environment
GeoPandas 1.2.0 requires Python 3.11+, NumPy >=2, pandas >=2.2,
Shapely >=2.1, pyproj >=3.7, pyogrio >=0.8, and packaging. The current
pyproj wheel below requires Python 3.12+. This exact Python 3.12 snapshot was
smoke-tested on 2026-10-01:
uv venv --python 3.12
uv pip install \
"geopandas==1.2.0" \
"numpy==2.5.3" \
"pandas==3.0.6" \
"shapely==2.1.2" \
"pyproj==3.8.0" \
"pyogrio==0.13.0" \
"pyarrow==25.0.1" \
"packaging==26.3"
Keep optional plotting and PostGIS packages pinned in the project lock as well. Do not mix binary geospatial packages from incompatible package channels.
Workflow
- Inspect a vetted local layer with
vector_inventory.py; retain source hashes. - Use
crs_reprojection_plan.pyto inspect candidate transformations. It plans only: execute an appropriateto_crs()/pyproj transformation separately. - Audit geometry with
geometry_validity_report.py; compare simulated repair changes before requesting its optional new GeoPackage output. - Run the intended analysis with explicit predicates, CRS units, precision,
and aggregation rules.
spatial_join_audit.pymeasures join cardinality; it does not export joined features or perform a dissolve. - Use
export_plan.pyto inspect the proposed contract, then write and reopen the actual output separately. A successful plan has not written a file. - Review disclosure and generalization before sharing derived geodata/maps,
using
sensitive_coordinates_checklist.pywhen sensitive locations occur.
Examples below use synthetic or placeholder local inputs. File/database examples need the named dataset or service; PostGIS and tile-provider calls were reviewed against upstream contracts but were not exercised against a live service.
Safety and privacy contract
- Treat exact coordinates, addresses, parcel boundaries, trajectories, and small-area joins as sensitive. Default reports to counts, categories, coarse extents, and redacted identifiers. Generalize before publication.
- Never automatically load a URL, cloud URI, GDAL
/vsi*path, archive, or geocode an address. Obtain explicit approval, validate provenance and hashes, then stage an unpacked local file in an isolated workspace. - GDAL/OGR drivers, GEOS, PROJ, pyogrio, Shapely, pyproj, and their wheels are a native-code trust boundary. Prefer official wheels/conda-forge, record native versions, restrict drivers, and process untrusted data in a sandbox.
- Do not open macro-enabled office files or nested archives through permissive GDAL drivers. The bundled CLIs use an extension allowlist and reject archives.
- Read only named database secrets such as
GEOPANDAS_POSTGIS_PASSWORD; use a secret manager or scoped environment variable. Never embed a password in a URL or source, print an engine/URL, or dump the environment. - Every derived artifact needs source hashes/versions, CRS, operation parameters, predicate, join cardinality, precision/repair choices, and row-count checks.
Correctness gates
Apply these gates before trusting a result:
- Identity and provenance — identify the source layer, stable feature key, duplicate IDs, row count, geometry column, parser/driver, and content hash.
- Geometry state — count null, empty, invalid, mixed, Z/M, and collapsed
geometries separately.
Noneis missing; an empty Shapely geometry is real. - CRS semantics — require CRS metadata.
set_crs()assigns metadata;to_crs()transforms coordinates. Never guess a CRS from coordinate ranges. - Units and operation — GeoPandas is planar. Geographic coordinates are angular; do not use them directly for buffer, distance, area, nearest joins, precision grids, or tolerances. Choose a fit-for-purpose local/equal-area CRS or a geodesic method.
- Transform quality — inspect axis order, area of use, datum pipeline, expected accuracy, ballpark status, and missing grids. Keep PROJ network disabled unless the user explicitly approves grid retrieval.
- Topology and precision — validate before and after repair/overlay. Pick a
…
자주 묻는 질문
지리 데이터란 무엇인가요?
지구상의 위치를 가지는 정보입니다. 주소, GPS 지점, 국가를 나타내는 다각형 등이 있습니다.
CRS란 무엇인가요?
CRS는 좌표계(Coordinate Reference System)의 약자입니다. 위도와 경도가 지구 표면과 어떻게 연결되는지 정하는 규칙 집합으로, 지도를 정확하게 만듭니다.
GeoPandas를 모든 종류의 지도에 쓸 수 있나요?
GeoPandas는 벡터 데이터(점, 선, 면)에 가장 적합하고 흔한 지도 형식과 잘 작동하지만, 더 복잡한 데이터나 특정 출처에는 추가 설정이 필요할 수 있습니다.
상세 정보
작성자의 원본 설명
Guidance and local audit tools for Python workflows that directly use GeoPandas GeoSeries, GeoDataFrame, spatial operations, or vector-data I/O.
인기도
- GitHub 스타
- 51k
- 순위
- #3470
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.