Opened 16 years ago

Closed 16 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

Description

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/models.py 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 16 years ago.
Doc patch

Download all attachments as: .zip

Change History (6)

comment:1 by jbronn, 16 years ago

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 by jbronn, 16 years ago

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

by Robert Coup, 16 years ago

Attachment: 7434.0.diff added

Doc patch

comment:3 by Robert Coup, 16 years ago

Works fine :)

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

comment:4 by Simon Greenhill, 16 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:5 by jbronn, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r7665.

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