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)
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Keywords: | gdal settings disable added |
---|---|
Owner: | changed from | to
Version: | SVN → gis |
comment:3 by , 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 , 16 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Have you tried setting
GDAL_LIBRARY_PATH
in your settings to a non-existent file? Afterwords, an import of GDAL stuff should fail, and thusHAS_GDAL
would be false.