RemotePixel / amazonlinux

Create Geospatial ready AWS lambda layer and docker image
MIT License
12 stars 3 forks source link

use`ultrasmall` compiling options from official GDAL images #19

Closed vincentsarago closed 4 years ago

vincentsarago commented 4 years ago

The aim of this project is to create usuable and light GDAL docker image and AWS Lambda layer. Following this statement, I'd like to make some change to the available drivers we currently allow by following https://github.com/OSGeo/gdal/blob/master/gdal/docker/alpine-ultrasmall/Dockerfile#L110-L196

@meyer1994 I'll make sure to keep GML driver but if you are using others please let me know.

vincentsarago commented 4 years ago

Example:

      --disable-debug \
      --disable-all-optional-drivers \
      --enable-driver-csv \
      --enable-driver-gpkg \
      --enable-driver-gml \
      --enable-driver-mbtiles \
      --enable-driver-mvt \
      --enable-driver-shape \
      --enable-driver-wms \
      --enable-driver-wmts \
      --enable-driver-xyz \
      --enable-lto \
      --prefix=$PREFIX \
      --with-crypto \
      --with-curl \
      --with-expat \
      --with-hide-internal-symbols=yes \
      --with-geos=$PREFIX/bin/geos-config \
      --with-geotiff=internal --with-rename-internal-libgeotiff-symbols \
      --with-jpeg=$PREFIX \
      --with-libtiff=internal --with-rename-internal-libtiff-symbols \
      --with-openjpeg \
      --with-png \
      --with-proj=$PREFIX \
      --with-sqlite3=$PREFIX \
      --with-xml2 \
      --with-webp=$PREFIX \
      --with-zstd=$PREFIX \
      --without-jpeg12 \
      --without-gif \
      --without-gnm \
      --without-lerc \
      --without-libtool \      
      --without-pcraster \
      --without-pcidsk
GDAL is now configured for x86_64-pc-linux-gnu

  Installation directory:    /opt
  C compiler:                gcc -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -Wl,-S -fPIC -flto -fvisibility=hidden
  C++ compiler:              g++ -std=c++11 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -Wl,-S -fPIC -flto -fvisibility=hidden
  C++14 support:             no

  LIBTOOL support:           no

  LIBZ support:              external
  LIBLZMA support:           no
  ZSTD support:              yes
  cryptopp support:          no
  crypto/openssl support:    yes
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          no
  LIBPNG support:            external
  DDS support:               no
  GTA support:               no
  LIBTIFF support:           internal (BigTIFF=yes)
  LIBGEOTIFF support:        internal
  LIBJPEG support:           external
  12 bit JPEG:               no
  12 bit JPEG-in-TIFF:       no
  LIBGIF support:            no
  JPEG-Lossless/CharLS:      no
  OGDI support:              no
  HDF4 support:              no
  HDF5 support:              no
  Kea support:               no
  NetCDF support:            no
  Kakadu support:            no
  JasPer support:            no
  OpenJPEG support:          yes
  ECW support:               no
  MrSID support:             no
  MrSID/MG4 Lidar support:   no
  JP2Lura support:           no
  MSG support:               no
  EPSILON support:           no
  WebP support:              yes
  cURL support (wms/wcs/...):yes
  PostgreSQL support:        no
  LERC support:              no
  MySQL support:             no
  Ingres support:            no
  Xerces-C support:          no
  Expat support:             yes
  libxml2 support:           yes
  Google libkml support:     no
  ODBC support:              no
  FGDB support:              no
  MDB support:               no
  PCIDSK support:            no
  OCI support:               no
  GEORASTER support:         no
  SDE support:               no
  Rasdaman support:          no
  DODS support:              no
  SQLite support:            yes
  PCRE support:              yes
  SpatiaLite support:        no
  RasterLite2 support:       no
  Teigha (DWG and DGNv8):    no
  INFORMIX DataBlade support:no
  GEOS support:              yes
  SFCGAL support:            no
  QHull support:             internal
  Poppler support:           no
  Podofo support:            no
  PDFium support:            no
  OpenCL support:            no
  Armadillo support:         no
  FreeXL support:            no
  SOSI support:              no
  MongoDB support:           no
  MongoCXX v3 support:       no
  HDFS support:              no
  TileDB support:            no
  userfaultfd support:       yes
  misc. gdal formats:        xyz wms wmts mbtiles
  disabled gdal formats:     aaigrid adrg aigrid airsar arg blx bmp bsb cals ceos ceos2 coasp cosar ctg dimap dted e00grid elas envisat ers fit gff gsg gxf hf2 idrisi ignfheightasciigrid ilwis ingr iris iso8211 jaxapalsar jdem kmlsuperoverlay l1b leveller map mrf msgn ngsgeoid nitf northwood pds prf r raw rmf rs2 safe saga sdts sentinel2 sgi sigdem srtmhgt terragen til tsx usgsdem xpm zmap grib ozi pdf rik eeda plmosaic rda wcs daas rasterlite
  misc. ogr formats:         csv gml mvt shape gpkg
  disabled ogr formats:      aeronavfaa arcgen avc bna cad dgn dxf edigeo geoconcept georss gmt gpsbabel gpx gtm htf jml ntf openair openfilegdb pgdump rec s57 segukooa segy selafin sua svg sxf tiger vdv wasp xplane idrisi pds sdts amigocloud carto cloudant couchdb csw elastic gft ngw plscenes wfs vfk osm ods xlsx nas ili gmlas odbc pgeo mssqlspatial geomedia walk

  SWIG Bindings:             no

  PROJ >= 6:                 yes
  enable GNM building:       no
  enable pthread support:    yes
  enable POSIX iconv support:yes
  hide internal symbols:     yes
vincentsarago commented 4 years ago

I've updated the images over https://github.com/RemotePixel/amazonlinux/pull/20 but it doesn't seem to have a huge effect on the size of the layer, I'm going to revert the changes. We can make more research on optimization later