kendrick-oppong/geoskills/duckdb-spatial-geoparquet

Claude Code and agent skill by kendrick-oppong/geoskills

Trust tier 3
  • community
Source check pending

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-geoparquet

SKILL.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 httpfs extension 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 (geo key 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

sql
INSTALL spatial; LOAD spatial;
INSTALL httpfs; LOAD httpfs;
-- Query a GeoParquet file directly from cloud storage
SELECT name, ST_AsText(geom)
FROM read_parquet('s3://bucket/buildings.parquet')
WHERE ST_Intersects(geom, ST_GeomFromText('POLYGON((...))'));
-- Export a filtered subset to GeoParquet for downstream loading into PostGIS
COPY (
SELECT * FROM read_parquet('input.parquet') WHERE region = 'accra'
) TO 'accra_subset.parquet' (FORMAT PARQUET);

Related skills

  • geodata-formats-and-intake — when GeoParquet is the right choice vs alternatives
  • postgis-geospatial — the production database counterpart for transactional/multi-user access
  • remote-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kendrick-oppong/geoskills/duckdb-spatial-geoparquet/badge)](https://verified-skill.com/skills/kendrick-oppong/geoskills/duckdb-spatial-geoparquet)

Something wrong with this skill or its page? Tell us.