Open leonardcser opened 1 year ago
Is a specific PostGIS version required?
Edit: Running it again, crashes again. Probably an issue with the data that is not handled gracefully.
@louwers Thanks a lot for reporting this, I'm currently not able to reproduce the issue. I tried several files from geofabrick without getting this exception.
I currently use the following docker image for postgis on the mac (kartoza/postgis:15-3.3
). Could you provide some information about your postgis setup?
I'm using PostgreSQL 16 with PostGIS 3.4. I'm using https://postgresapp.com/ on macOS, you might want to try that (no Docker overhead).
It happens for the Switzerland data as well as the the Netherlands data (did not try other downloads).
Great, I have now been able to reproduce the error. It looks like st_simplifypreservetopology
is causing this issue. A quick workaround was to replace these calls with st_simplify
, but I will try to find for a better alternative.
The problem seems related to the version of geos used in PostgresApp (3.12.1) and specific to the use of st_simplifypreservetopology
.
The kartoza/postgis:16-3.4
docker image uses an older version of geos (3.11.1-CAPI-1.17.1). I will try to compile PostgressApp with geos 3.11.1 to confirm this. Only a few people seems to have encountered this problem yet, but I guess that it will become pervasive as people start building against the latest version of geos.
Building the basemap with the the following osm pbf, produces the error below:
Config
Stacktrace