-
Hello, I want to use ogr2ogr, directly from the postgis/postgis:16-3.4-alpine image, to load geopackage into the postgreSQL database, but I got the error that the PostgreSQL/PostGIS format in not supported. Effectively this format is not listed when I execute ogrinfo --formats. Is there any way to solve my problem? I try some solutions proposed, but none are working. Initially I was using the Debian:bullseye version of the image, but since I need an earlier version of GEOS, I try to make it work on Alpine. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Alpine usually includes more recent versions of GEOS, PROJ, and GDAL, but these are maintained by Alpine maintainers, who generally aim for minimal size, so I don't have a simple solution for that. I'm not sure if I fully understand your requirements, 1.) The 2.) You could try the ~test system ( https://github.com/ImreSamu/docker-postgis ) with the following image: 3.) Alternatively, from the test system, you could use the experimental recent image, which contains the latest versions of everything. 4.) Another option to try (though I haven't tested it) is to use the GDAL project's latest Docker image: for example:
or
|
Beta Was this translation helpful? Give feedback.
-
Maybe you can extend the FROM postgis/postgis:16-3.4-alpine
RUN apk search --no-cache gdal*
RUN apk add --no-cache gdal-driver-all gdal-tools test: $ docker run -it --rm postgis:16-3.4-alpine-full-gdal sh -c "ogrinfo --formats | grep Post"
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
PGDUMP -vector- (w+v): PostgreSQL SQL dump (*.sql) Or you can customize - installing only the important gdal-driver:
Ouch ... it is a "known" database initialisation problem ( if the database directory is not empty ) Based on the Official Docker Postgres Doc :
Or don't change the [ bullseye <--> bookworm ]
|
Beta Was this translation helpful? Give feedback.
Maybe you can extend the
postgis/postgis:16-3.4-alpine
image.like:
test:
Or you can customize - installing only the important gdal-driver: