This repository was archived by the owner on Oct 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexport-postgis-table.sh
More file actions
58 lines (46 loc) · 2.86 KB
/
export-postgis-table.sh
File metadata and controls
58 lines (46 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
docker run -v /tmp/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f GPKG /tmp/data/output.gpkg \
PG:"dbname='COS' host='192.168.1.105' port='5432' user='jsimoes' password=$POSTGRES_PASS" \
"cos2018v2"
docker run -v /tmp/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f GPKG /tmp/data/cadastralparcel.gpkg PG:"dbname='inspire' host='192.168.10.53' port='5432' user='cpogcapi2025' password=$POSTGRES_PASS" "inspire.cadastralparcel"
docker run -v /tmp/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f GPKG /tmp/data/cadastralparcel.gpkg PG:"dbname='inspire' host='192.168.10.53' port='5432' user='cpogcapi2025' password=$POSTGRES_PASS" "inspire.cadastralparcel"
docker run -v /tmp/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_distritos.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_distritos"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_freguesias.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_freguesias"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_municipios.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_municipios"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_nuts1.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_nuts1"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_nuts2.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_nuts2"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_nuts3.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_nuts3"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_trocos.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_trocos"
docker run -v /home/byteroad/git/ogcapi-simple/data:/tmp/data \
ghcr.io/osgeo/gdal:ubuntu-full-3.8.4 \
ogr2ogr \
-f 'GPKG' /tmp/data/cont_distritos.gpkg PG:"dbname='caop' host='192.168.10.102' port='5432' user='ogc_api' password=$POSTGRES_PASS" "caop2024.cont_distritos"