kartoza / docker-postgis

Dockerfile for postgis
GNU General Public License v2.0
660 stars 313 forks source link

Possibility for building against a different version of GEOS #491

Open rumski20 opened 3 weeks ago

rumski20 commented 3 weeks ago

What is the bug or the crash?

Do you know if there is a way, using this image, to build PostGIS against a different version of GEOS?

When I run the image as is, PostGIS is built using GEOS 3.11.1.

select postgis_geos_version();

postgis_geos_version
3.11.1-CAPI-1.17.1

However, the current GEOS version is 3.13.x and there are some new functions, like ST_CoverageSimplify that require GEOS version 3.12+

Is it possible to specify the GEOS version PostGIS uses when it builds?

Thanks again for this awesome docker image.

Steps to reproduce the issue

n/a

Versions

17-3.5

Additional context

No response

NyakudyaA commented 3 weeks ago

@rumski20 I think this can be tackled two ways

The first option would be more straightforward

rumski20 commented 3 weeks ago

@rumski20 I think this can be tackled two ways

* Change the base image in use, currently we using bookworm but I see there are newer versions of debian:trixie-slim this should hopefully have newer versions of geos

* Check which package installs geos and have a compiled geos version which is compatible with postgis

The first option would be more straightforward

Thanks. I'll give this a try and report back.

NyakudyaA commented 2 weeks ago

@rumski20 https://www.cybertec-postgresql.com/en/postgis-upgrade-geos-with-ubuntu-in-3-steps/