gdal package needs libexpat support
In Docker python2.7-alpine3.6 using GDAL package v2.1.3 from alpine/edge/testing got following error, also when using GDAL from Python with py-gdal:
ogr2ogr bla input/cities.gml
ERROR 1: Unable to create Xerces C++ or Expat based GML reader, Xerces or Expat support
not configured into GDAL/OGR.
ERROR 1: File input/cities.gml appears to be GML but the GML reader can't
be instantiated, likely because Xerces or Expat support was
not configured in.
FAILURE:
Unable to open datasource `input/cities.gml' with the following drivers.
-> PCIDSK
-> PDF
-> ESRI Shapefile
-> MapInfo File
-> UK .NTF
-> OGR_SDTS
-> S57
-> DGN
-> OGR_VRT
-> REC
-> Memory
-> BNA
-> CSV
-> GML
-> GPX
-> KML
.
.
IMO libexpat needs to be linked on build, it shows missing:
ldd /usr/lib/libgdal.so.20.1.3
ldd (0x7fc6b95ea000)
libgif.so.7 => /usr/lib/libgif.so.7 (0x7fc6b866b000)
libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x7fc6b840c000)
libtiff.so.5 => /usr/lib/libtiff.so.5 (0x7fc6b81a5000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7fc6b7f78000)
libz.so.1 => /lib/libz.so.1 (0x7fc6b7d61000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x7fc6b7afb000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fc6b77a9000)
libc.musl-x86_64.so.1 => ldd (0x7fc6b95ea000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fc6b7597000)
libssh2.so.1 => /usr/lib/libssh2.so.1 (0x7fc6b736f000)
libssl.so.43 => /lib/libssl.so.43 (0x7fc6b7124000)
libcrypto.so.41 => /lib/libcrypto.so.41 (0x7fc6b6d7e000)
Can IMO be added to deps and configure statement in APKBUILD of
https://pkgs.alpinelinux.org/package/edge/testing/x86/gdal like
“—with-expat”.
Possibly more drivers are required.
(from redmine: issue id 8080, created on 2017-10-30)