[gdal-dev] Python Wheels for gdal
cgohlke at uci.edu
Fri Jan 31 10:56:33 PST 2020
On 1/30/2020 6:33 AM, Robert Coup wrote:
> Hi Christoph,
> For what it's worth, I'm doing some very minimal GDAL builds at the
> moment with Python bindings. The problem you'll very quickly run into is
> that GDAL has an enormous set of dependencies. This is what the default
> Homebrew gdal package depends on in macOS: cfitsio, epsilon, expat,
> freexl, geos, giflib, hdf5, jasper, jpeg, json-c, libdap, libgeotiff,
> libpng, libpq, libspatialite, libtiff, libxml2, netcdf, numpy, pcre,
> poppler, proj, python, sqlite, unixodbc, webp, xerces-c, xz, zstd.
> Debian's list is even longer.
> And each of those mostly have yet more dependencies... and if things are
> missed then issues arrive where one dependency is talking to one version
> of a library, and another dependency is talking to another. With usual
> difficult to debug hilarity ensuing.
> Sean has done a pile of this work already with respect to the GDAL
> wheels for RasterIO & Fiona, and Christoph Gohlke has done the same for
> the windows GDAL wheels Even linked to. They're both fairly minimal sets
> of drivers though. I'd definitely suggest building on their work if you
> want to make a start.
> Good luck!
> Rob :)
I am curious by what standard do the binaries at
<https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal> have a "fairly
minimal sets of drivers"?
Iterating over ogr.GetDriver() for the 3.0.4 binaries returns:
ARCGEN, AVCBin, AVCE00, AeronavFAA, AmigoCloud, BNA, CAD, CSV, CSW,
Carto, Cloudant, CouchDB, DB2ODBC, DGN, DXF, EDIGEO, EEDA, ESRI
Shapefile, ESRIJSON, ElasticSearch, GFT, GML, GPKG, GPSBabel,
GPSTrackMaker, GPX, GeoJSON, GeoJSONSeq, GeoRSS, Geoconcept, Geomedia,
HTF, HTTP, Idrisi, JML, JP2OpenJPEG, JPEG2000, KML, LIBKML, MBTiles,
MSSQLSpatial, MVT, MapInfo File, Memory, NGW, ODBC, ODS, OGR_GMT,
OGR_PDS, OGR_SDTS, OGR_VRT, OSM, OpenAir, OpenFileGDB, PCIDSK, PDF,
PDS4, PGDUMP, PGeo, PLSCENES, PostgreSQL, REC, S57, SEGUKOOA, SEGY,
SQLite, SUA, SVG, SXF, Selafin, TIGER, TopoJSON, UK .NTF, VDV, VFK,
WAsP, WFS, WFS3, Walk, XLS, XLSX, XPlane, netCDF
Some drivers (e.g. JPEG LS) and features (12-bit JPEG in TIFF) are
disabled because of library conflict, build, or stability issues.
Excluding drivers depending on GPL (e.g. Poppler, MySQL) or proprietary
licensed libraries, what commonly used drivers are missing?
Everything except for the LGPLed GEOS library is statically linked. The
wheels include the GDAL tools, link library, and include files.
I am not working in the geo/GIS field and am not using GDAL regularly,
so I might be missing something.
I sent my nmake.opt and patch to the to swig/python package to Christoph
More information about the gdal-dev