kendrick-oppong/geoskills/duckdb-spatial-geoparquet
Claude Code and agent skill by kendrick-oppong/geoskills
- community
Checking that the SKILL.md file is still in the repository.
Use for analytical geospatial workloads over GeoParquet, Parquet, or large flat files using DuckDB's spatial extension — ad-hoc analysis, ETL, or querying cloud object storage directly without standing up a database server.
Install
npx vskill@latest install kendrick-oppong/geoskills/duckdb-spatial-geoparquetSKILL.md
The same SKILL.md was published earlier as kendrick-oppong/geoskills/duckdb-spatial-geoparquet.
DuckDB Spatial & GeoParquet
When to use this skill
- Ad-hoc analysis over a large geospatial file (millions of rows) without provisioning a database
- "Query this GeoParquet/Parquet file on S3 directly"
- ETL/transform steps between a raw data drop and a production PostGIS load
- Comparing/joining datasets in different formats (GeoJSON + Parquet + Shapefile) in one query
Why this over a full database
DuckDB is an in-process analytical (OLAP, columnar) engine — no server, embeds directly in a script or backend process. Its spatial extension adds geometry types and functions similar to PostGIS syntax. It excels at:
- One-off/batch analysis where standing up Postgres is overkill
- Reading Parquet/GeoParquet directly from S3/GCS/HTTP via range requests — no need to download first
- Fast columnar aggregation over large tabular+spatial data (far faster than row-oriented Postgres for scan-heavy analytics)
It is not a replacement for PostGIS in a live multi-user transactional backend — no concurrent write model, no long-lived server process by default.
Checklist
- [ ] Install/load spatial extension explicitly (
INSTALL spatial; LOAD spatial;) — not enabled by default - [ ] For remote files, confirm
httpfsextension is loaded for S3/HTTP access - [ ] Prefer GeoParquet over GeoJSON as the interchange format for large datasets — columnar, compressed, and carries CRS metadata in the file itself
- [ ] Push filters into the query (
WHERE) rather than loading everything into memory — DuckDB will use Parquet row-group statistics to skip data when filters are sargable - [ ] For repeated queries against the same remote file, consider caching locally rather than re-fetching over HTTP each run
- [ ] Validate the GeoParquet's declared CRS metadata (
geokey in the file's schema) matches what you expect before joining with other sources
Common pitfalls
- Treating DuckDB as a persistent multi-writer backend: fine for a single-process ETL job or analytics service; not designed for the concurrent-write patterns a NestJS API with many simultaneous users needs — use PostGIS for that layer instead.
- Forgetting to load the spatial extension: spatial functions simply won't exist and errors can be non-obvious about why.
- Mixing CRSs silently across joined Parquet files: unlike PostGIS, spatial joins won't automatically fail loudly on CRS mismatch — always check declared CRS metadata first.
- Re-scanning a large remote Parquet file repeatedly during iterative development: costs time and egress; materialize a local subset while iterating on query logic.
Reference snippets
Related skills
geodata-formats-and-intake— when GeoParquet is the right choice vs alternativespostgis-geospatial— the production database counterpart for transactional/multi-user accessremote-sensing-imagery-processing— pairing DuckDB with STAC catalogs for imagery metadata queries
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/duckdb-spatial-geoparquet/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kendrick-oppong/geoskills/duckdb-spatial-geoparquet)