Skip to content

Instantly share code, notes, and snippets.

@wriglz
Created December 30, 2024 10:47
Show Gist options
  • Save wriglz/e9d1d5c249c1fc9b7383e54a4241d3c2 to your computer and use it in GitHub Desktop.
Save wriglz/e9d1d5c249c1fc9b7383e54a4241d3c2 to your computer and use it in GitHub Desktop.

Convert a Shapefile to a Geopackage

In a terminal, use:

ogr2ogr -f GPKG your.gpkg firstfile.shp

You can then add a second shapefile to the same geopackage using:

ogr2ogr -append -f GPKG your.gpkg secondfile.shp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment