GeoPackage (.gpkg) Converter
Read named vector layers and tables from OGC GeoPackage files.
Pull named layers and attribute tables out of .gpkg SQLite containers using geopackage.vector. Output lands in typed Parquet and SQL tables ready for analysis.
What GeoPackage (.gpkg) Converter does
GeoPackage (.gpkg) Converter reads standard OGC SQLite spatial files used by mapping agencies and infrastructure authorities. Recipes pin geopackage.vector@1.0.0 with explicit layer names to pull vector features and relational tables without desktop GIS.
Layers pass through DuckDB SQL typing and geometry checks before promotion. Consumers download clean Parquet, CSV, or JSON, or query via REST API and MCP.
Input & output example
Reads named layers from OGC GeoPackage archives cleanly.
GeoPackage layer 'hydro_basins'
layer: hydro_basins | fid: 402 | basin_name: Sacramento | area_km2: 71,200
Normalized basin table
| fid | basin_name | area_km2 |
|---|---|---|
| 402 | Sacramento | 71200 |
How it works
- 1
Probe GeoPackage layers
Inspect the .gpkg file (or unzipped bundle) to list available OGC vector layers and attribute tables.
- 2
Select target layer with geopackage.vector
Pin geopackage.vector@1.0.0 and name the exact vector layer in reader decode_options.
- 3
Transform and serve spatial attributes
Project coordinates or join attribute tables in DuckDB SQL before publishing via Parquet, REST API, and MCP.
Try with an agent
Pre-loads GeoPackage (.gpkg) in chatPublish national watershed layers
Read the watershed layer from a USGS GeoPackage file and expose basin attributes via SQL and Parquet.
Common use cases
- National geological, watershed, and cadastral layers
- Multi-layer QGIS exports
- Replacing heavyweight GIS desktop conversions
Details
- Category
- Format Readers
- Identifier
- geopackage
- Inputs
- .gpkg (OGC GeoPackage)
- Outputs
- Typed vector & attribute tables
- Dataset delivery
- Parquet · CSV · JSON · SQL · REST API · MCP
Frequently asked questions
Can a single GeoPackage contain multiple tables?
Yes. Specify the layer name in reader decode_options to extract each layer into its own table.
Can I extract non-spatial attribute tables stored inside a GeoPackage?
Yes. Named attribute tables inside a .gpkg extract just as cleanly as spatial vector layers.
Do I need GDAL or QGIS installed locally?
No. geopackage.vector decodes OGC GeoPackage databases natively inside the Mostly Right runtime.