Skip to content

Instantly share code, notes, and snippets.

@TimJMartin
Created February 18, 2019 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimJMartin/b7168272513f296ca4c48344b4a0b2ed to your computer and use it in GitHub Desktop.
Save TimJMartin/b7168272513f296ca4c48344b4a0b2ed to your computer and use it in GitHub Desktop.
Export PostGIS schema to GPKG
ogr2ogr --config PG_LIST_ALL_TABLES YES --config PG_SKIP_VIEWS YES -f "GPKG" GPKG_Filename.gpkg -progress PG:"dbname=xxx user=xxx password=xxx active_schema=xxx schemas=xxx port=xxx host=xxx" -gt 1000000 -a_srs "EPSG:27700"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment