Skip to content

Commit 08c9e75

Browse files
authored
Pgdev2 (#280)
* PostgreSQL driver support * Testing PostgreSQL driver
1 parent 6e3a0a2 commit 08c9e75

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

13-master/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN set -ex \
4848
libjson-c-dev \
4949
libmpfr-dev \
5050
libpcre3-dev \
51+
libpq-dev \
5152
libprotobuf-c-dev \
5253
libsqlite3-dev \
5354
libtiff-dev \
@@ -61,7 +62,7 @@ RUN set -ex \
6162
# sfcgal
6263
ENV SFCGAL_VERSION master
6364
#current:
64-
#ENV SFCGAL_GIT_HASH e2ae3548344e7923d31ab42682e0f0e7f60c6a63
65+
#ENV SFCGAL_GIT_HASH 7d6bd802e7899a16b59277d6fb8204b55102c64d
6566
#reverted for the last working version
6667
ENV SFCGAL_GIT_HASH e1f5cd801f8796ddb442c06c11ce8c30a7eed2c5
6768

@@ -81,7 +82,7 @@ RUN set -ex \
8182

8283
# proj
8384
ENV PROJ_VERSION master
84-
ENV PROJ_GIT_HASH b385f2142a1ab4007d5771c5570d8406873846de
85+
ENV PROJ_GIT_HASH c6c2a3b22ddef30a29cfc48ca810ee1a54385242
8586

8687
RUN set -ex \
8788
&& cd /usr/src \
@@ -97,8 +98,7 @@ RUN set -ex \
9798

9899
# geos
99100
ENV GEOS_VERSION master
100-
# Commits on Dec 16, 2021
101-
ENV GEOS_GIT_HASH d30798e5c0c9956b5e90e4960f0c445211ed8fe6
101+
ENV GEOS_GIT_HASH e1d8471e2a9f579ebfbf6f49b3e37bd6eaad8565
102102

103103
RUN set -ex \
104104
&& cd /usr/src \
@@ -115,7 +115,7 @@ RUN set -ex \
115115

116116
# gdal
117117
ENV GDAL_VERSION master
118-
ENV GDAL_GIT_HASH 837be861fb2ac2ef3ee70bfd06309e039ef5c16f
118+
ENV GDAL_GIT_HASH 2618ede82419c09a2fd313d9cccfaf9f9acf93bc
119119

120120
RUN set -ex \
121121
&& cd /usr/src \
@@ -180,10 +180,10 @@ RUN set -ex \
180180

181181
COPY --from=builder /usr/local /usr/local
182182

183-
#ENV SFCGAL_GIT_HASH e2ae3548344e7923d31ab42682e0f0e7f60c6a63
184-
ENV PROJ_GIT_HASH b385f2142a1ab4007d5771c5570d8406873846de
185-
ENV GEOS_GIT_HASH 1470d0a439b01a0d6ce601fb718177327a06fe14
186-
ENV GDAL_GIT_HASH 837be861fb2ac2ef3ee70bfd06309e039ef5c16f
183+
#ENV SFCGAL_GIT_HASH 7d6bd802e7899a16b59277d6fb8204b55102c64d
184+
ENV PROJ_GIT_HASH c6c2a3b22ddef30a29cfc48ca810ee1a54385242
185+
ENV GEOS_GIT_HASH e1d8471e2a9f579ebfbf6f49b3e37bd6eaad8565
186+
ENV GDAL_GIT_HASH 2618ede82419c09a2fd313d9cccfaf9f9acf93bc
187187

188188
# Minimal command line test.
189189
RUN set -ex \
@@ -197,7 +197,7 @@ RUN set -ex \
197197

198198
# install postgis
199199
ENV POSTGIS_VERSION master
200-
ENV POSTGIS_GIT_HASH c9dfab57937b0e9454dbded9f4f7eaebbd79d0bd
200+
ENV POSTGIS_GIT_HASH b67f6c80f24edb57fa223a2065c2255bbb346cef
201201

202202
RUN set -ex \
203203
&& apt-get update \

14-master/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN set -ex \
4848
libjson-c-dev \
4949
libmpfr-dev \
5050
libpcre3-dev \
51+
libpq-dev \
5152
libprotobuf-c-dev \
5253
libsqlite3-dev \
5354
libtiff-dev \
@@ -61,7 +62,7 @@ RUN set -ex \
6162
# sfcgal
6263
ENV SFCGAL_VERSION master
6364
#current:
64-
#ENV SFCGAL_GIT_HASH e2ae3548344e7923d31ab42682e0f0e7f60c6a63
65+
#ENV SFCGAL_GIT_HASH 7d6bd802e7899a16b59277d6fb8204b55102c64d
6566
#reverted for the last working version
6667
ENV SFCGAL_GIT_HASH e1f5cd801f8796ddb442c06c11ce8c30a7eed2c5
6768

@@ -81,7 +82,7 @@ RUN set -ex \
8182

8283
# proj
8384
ENV PROJ_VERSION master
84-
ENV PROJ_GIT_HASH b385f2142a1ab4007d5771c5570d8406873846de
85+
ENV PROJ_GIT_HASH c6c2a3b22ddef30a29cfc48ca810ee1a54385242
8586

8687
RUN set -ex \
8788
&& cd /usr/src \
@@ -97,8 +98,7 @@ RUN set -ex \
9798

9899
# geos
99100
ENV GEOS_VERSION master
100-
# Commits on Dec 16, 2021
101-
ENV GEOS_GIT_HASH d30798e5c0c9956b5e90e4960f0c445211ed8fe6
101+
ENV GEOS_GIT_HASH e1d8471e2a9f579ebfbf6f49b3e37bd6eaad8565
102102

103103
RUN set -ex \
104104
&& cd /usr/src \
@@ -115,7 +115,7 @@ RUN set -ex \
115115

116116
# gdal
117117
ENV GDAL_VERSION master
118-
ENV GDAL_GIT_HASH 837be861fb2ac2ef3ee70bfd06309e039ef5c16f
118+
ENV GDAL_GIT_HASH 2618ede82419c09a2fd313d9cccfaf9f9acf93bc
119119

120120
RUN set -ex \
121121
&& cd /usr/src \
@@ -180,10 +180,10 @@ RUN set -ex \
180180

181181
COPY --from=builder /usr/local /usr/local
182182

183-
#ENV SFCGAL_GIT_HASH e2ae3548344e7923d31ab42682e0f0e7f60c6a63
184-
ENV PROJ_GIT_HASH b385f2142a1ab4007d5771c5570d8406873846de
185-
ENV GEOS_GIT_HASH 1470d0a439b01a0d6ce601fb718177327a06fe14
186-
ENV GDAL_GIT_HASH 837be861fb2ac2ef3ee70bfd06309e039ef5c16f
183+
#ENV SFCGAL_GIT_HASH 7d6bd802e7899a16b59277d6fb8204b55102c64d
184+
ENV PROJ_GIT_HASH c6c2a3b22ddef30a29cfc48ca810ee1a54385242
185+
ENV GEOS_GIT_HASH e1d8471e2a9f579ebfbf6f49b3e37bd6eaad8565
186+
ENV GDAL_GIT_HASH 2618ede82419c09a2fd313d9cccfaf9f9acf93bc
187187

188188
# Minimal command line test.
189189
RUN set -ex \
@@ -197,7 +197,7 @@ RUN set -ex \
197197

198198
# install postgis
199199
ENV POSTGIS_VERSION master
200-
ENV POSTGIS_GIT_HASH c9dfab57937b0e9454dbded9f4f7eaebbd79d0bd
200+
ENV POSTGIS_GIT_HASH b67f6c80f24edb57fa223a2065c2255bbb346cef
201201

202202
RUN set -ex \
203203
&& apt-get update \

Dockerfile.master.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN set -ex \
4848
libjson-c-dev \
4949
libmpfr-dev \
5050
libpcre3-dev \
51+
libpq-dev \
5152
libprotobuf-c-dev \
5253
libsqlite3-dev \
5354
libtiff-dev \
@@ -194,6 +195,10 @@ RUN set -ex \
194195
&& proj \
195196
&& sfcgal-config --version
196197

198+
# Testing ogr2ogr PostgreSQL driver.
199+
RUN ogr2ogr --formats | grep -q "PostgreSQL/PostGIS" && exit 0 \
200+
|| echo "ogr2ogr missing PostgreSQL driver" && exit 1
201+
197202
# install postgis
198203
ENV POSTGIS_VERSION master
199204
ENV POSTGIS_GIT_HASH %%POSTGIS_GIT_HASH%%

0 commit comments

Comments
 (0)