geopandas
Fungsinya
GeoPandas adalah tool untuk mengolah data geografis di peta menggunakan Python. Tool ini membantu menyusun dan menganalisis informasi spasial, seperti lokasi kota atau batas negara.
Kapan dipakai
- βSaat Anda perlu menganalisis jarak antar titik pada peta.
- βSaat membandingkan luas wilayah yang berbeda.
- βUntuk menggabungkan informasi dari berbagai lapisan peta.
Link skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/geopandas/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana cara menghitung luas semua negara bagian Brasil menggunakan file peta?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
GeoPandas menggunakan struktur data berbentuk tabel untuk menyimpan informasi peta. Tool ini memungkinkan Anda melakukan operasi spasial, seperti menghitung jarak atau luas, langsung pada data tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
β¦
Pertanyaan umum
Apa itu data geografis?
Itu informasi yang memiliki lokasi di planet Bumi, seperti alamat, titik GPS, atau poligon yang mewakili sebuah negara.
Apa itu CRS?
CRS singkatan dari Coordinate Reference System. Ini seperti seperangkat aturan yang menentukan bagaimana koordinat (lintang dan bujur) berhubungan dengan permukaan Bumi, sehingga peta tetap akurat.
Apakah saya bisa menggunakan GeoPandas dengan semua jenis peta?
GeoPandas sangat cocok untuk data vektor (titik, garis, poligon) dan bekerja baik dengan format peta yang umum, tetapi mungkin memerlukan pengaturan tambahan untuk data yang lebih kompleks atau sumber tertentu.
Detail
Deskripsi asli dari pembuat
Guidance and local audit tools for Python workflows that directly use GeoPandas GeoSeries, GeoDataFrame, spatial operations, or vector-data I/O.
Popularitas
- Bintang GitHub
- 51k
- Peringkat
- #3470
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
13c-metabolic-flux
51kMemperkirakan fluks metabolik menggunakan data pelacakan isotop karbon-13. Berguna untuk menganalisis metabolisme seluler dan jalur biokimia.
adaptyv
51kMerancang eksperimen karakterisasi protein menggunakan Adaptyv API. Membantu memperkirakan biaya, mengirimkan sekuens, dan memantau hasil lab.
aeon
51kMenjalankan tugas machine learning pada data time series. Berguna untuk klasifikasi, peramalan, deteksi anomali, dan menemukan pola dalam data berurutan.
alphagenome
51kMencari efek genomik yang sudah dihitung untuk varian genetik. Memberikan skor dan penjelasan untuk memahami dampak varian terhadap genom.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.