postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.37k stars 464 forks source link

Dockerfile.master.template SFCGAL / PROJ refactoring. #337

Closed ImreSamu closed 1 year ago

ImreSamu commented 1 year ago

UPDATED 2023-Feb-11:

PROPOSED CHANGES for the Dockerfile.master.template

MINOR changes

SIZE increase:

HOW to test :

ImreSamu commented 1 year ago

status:

postgis/postgis:15-master

PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
POSTGIS="3.4.0dev 3.3.0rc2-420-g732064a15" [EXTENSION] 
  PGSQL="150" 
  GEOS="3.12.0dev-CAPI-1.18.0" 
  SFCGAL="SFCGAL 1.4.1, CGAL 5.5.2, BOOST 1.74.0" 
  PROJ="9.2.0" 
  GDAL="GDAL 3.7.0dev-437b59d300, released 2022/12/26" 
  LIBXML="2.9.10" 
  LIBJSON="0.15" 
  LIBPROTOBUF="1.3.3" 
  WAGYU="0.5.0 (Internal)" 
  TOPOLOGY 
  RASTER
ImreSamu commented 1 year ago

Dear @swiss-knight,

If you have the time, I would appreciate your comments on my proposal to solve the SFCGAL problem you raised. It took me a little longer to get it done, so I apologize for that, but I ran into an unexpected problem with the proj data.

If you have the time to test it, that would be even more helpful and it would also help to get the PR accepted sooner.

Since you have also made a proposal for a solution ( https://github.com/postgis/docker-postgis/pull/336 ), feel free to let me know if you think it is better, I am open to other solutions.

ImreSamu commented 1 year ago

status:

from a log ( https://github.com/postgis/docker-postgis/actions/runs/4144520723/jobs/7167671112 )

 PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

 POSTGIS="3.4.0dev 3.3.0rc2-594-gb669712b3" [EXTENSION] PGSQL="150" GEOS="3.12.0dev-CAPI-1.18.0" SFCGAL="SFCGAL 1.4.1, CGAL 5.5.2, BOOST 1.74.0" PROJ="9.2.0" GDAL="GDAL 3.7.0dev-edbe20c8d8, released 2023/02/10" LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY RASTER

 address_standardizer         | 3.4.0dev | public     | Used to parse an address into constituent elements. Generally used to support geocoding address normalization step.
 address_standardizer_data_us | 3.4.0dev | public     | Address Standardizer US dataset example
 fuzzystrmatch                | 1.1      | public     | determine similarities and distance between strings
 plpgsql                      | 1.0      | pg_catalog | PL/pgSQL procedural language
 postgis                      | 3.4.0dev | public     | PostGIS geometry and geography spatial types and functions
 postgis_raster               | 3.4.0dev | public     | PostGIS raster types and functions
 postgis_sfcgal               | 3.4.0dev | public     | PostGIS SFCGAL functions
 postgis_tiger_geocoder       | 3.4.0dev | tiger      | PostGIS tiger geocoder and reverse geocoder
 postgis_topology             | 3.4.0dev | topology   | PostGIS topology spatial types and functions

+ cat _pgis_full_version.txt
Removing intermediate container 91eef7c3aa78
 ---> b34b163031db
Successfully built b34b163031db
Successfully tagged postgis/postgis:15-master
docker images          postgis/postgis:15-master
REPOSITORY        TAG         IMAGE ID       CREATED        SIZE
postgis/postgis   15-master   b34b163031db   1 second ago   559MB
ImreSamu commented 1 year ago
 PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
 POSTGIS="3.4.0dev 3.3.0rc2-601-gb1b8c11bf" [EXTENSION] PGSQL="150" GEOS="3.12.0dev-CAPI-1.18.0" SFCGAL="SFCGAL 1.4.1, CGAL 5.5.2, BOOST 1.74.0" PROJ="9.2.0" GDAL="GDAL 3.7.0dev-06d99ac634, released 2023/02/11" LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY RASTER

 address_standardizer         | 3.4.0dev | public     | Used to parse an address into constituent elements. Generally used to support geocoding address normalization step.
 address_standardizer_data_us | 3.4.0dev | public     | Address Standardizer US dataset example
 fuzzystrmatch                | 1.1      | public     | determine similarities and distance between strings
 plpgsql                      | 1.0      | pg_catalog | PL/pgSQL procedural language
 postgis                      | 3.4.0dev | public     | PostGIS geometry and geography spatial types and functions
 postgis_raster               | 3.4.0dev | public     | PostGIS raster types and functions
 postgis_sfcgal               | 3.4.0dev | public     | PostGIS SFCGAL functions
 postgis_tiger_geocoder       | 3.4.0dev | tiger      | PostGIS tiger geocoder and reverse geocoder
 postgis_topology             | 3.4.0dev | topology   | PostGIS topology spatial types and functions

Removing intermediate container 766b0442a92c
 ---> 22f730739be5
Successfully built 22f730739be5
Successfully tagged postgis/postgis:15-master
docker images          postgis/postgis:15-master
REPOSITORY        TAG         IMAGE ID       CREATED        SIZE
postgis/postgis   15-master   22f730739be5   1 second ago   567MB
ImreSamu commented 1 year ago

@phillipross : Ready for review / merge ..

If you have any special requests or want certain things done differently or in a different PR, let me know and I'll change the PR.