Opened 10 years ago

Closed 10 years ago

#7434 closed (fixed)

Add an option to disable GDAL

Reported by: Robert Coup Owned by: jbronn
Component: GIS Version: gis
Severity: Keywords: gdal settings disable
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


libgdal connects to a massive number of other libraries which collectively use a tonne of RAM. This is further compounded in distribution releases of GDAL (eg. Debian & Ubuntu) since they tend to include nearly every option. Since it's imported by gis/ the RAM is consumed regardless of whether any GDAL features are later used.

Batteries included is good, so I wonder whether we can set a NO_GDAL option so people who want to disable it and understand the consequences can, as an optional setting or environment variable? Happy to write a patch, just want an opinion on options :)

Attachments (1)

7434.0.diff (776 bytes) - added by Robert Coup 10 years ago.
Doc patch

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 years ago by jbronn

Have you tried setting GDAL_LIBRARY_PATH in your settings to a non-existent file? Afterwords, an import of GDAL stuff should fail, and thus HAS_GDAL would be false.

comment:2 Changed 10 years ago by jbronn

Keywords: gdal settings disable added
Owner: changed from nobody to jbronn
Version: SVNgis

Changed 10 years ago by Robert Coup

Attachment: 7434.0.diff added

Doc patch

comment:3 Changed 10 years ago by Robert Coup

Works fine :)

7434.0.diff is a patch to gdal/ adding a note about the GDAL_LIBRARY_PATH setting.

comment:4 Changed 10 years ago by Simon Greenhill

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:5 Changed 10 years ago by jbronn

Resolution: fixed
Status: newclosed

Fixed in r7665.

Note: See TracTickets for help on using tickets.
Back to Top