django - Geodjango can't find GDAL while Python can -
I followed all the discussions and the steps mentioned, but got stuck in another issue, I did not make GODA available for GODA Found. In <
Python Console (C: \ Python 27), I'm able to do import gdal , but Geodenjo says that gdal.HAS_GDAL Under the Genzo / Geodanging Application Shell and any geometric operation such as GDAL, there is an error: Country.geom.geojson produces:
I have Python2.7 installed in the form of C: \ Python27 with the path environment variables :
C: \ Python 27 \; C: \ Python27 \ bin; C: \ Python27 \ Scripts; C: \ Program Files \ GDL; and other environment variables such as:
GDAL_DATA C: \ Program Files \ GDAL \ gdal-data GDAL_DRIVER_PATH C: \ Program Files \ GDAL \ gdalplugins GDAL_LIBRARY_PATH C: \ Program Files \ GDAL with settings.py Strong> but did not work I am using Windows 7 Ultimate x64, Python 2.7.3, Django 1.5.1, and tried to install / install GDAL and Python GDAL binding binaries.
The Python GDL installation is not detected because Windows environment variables are not set correctly.
I only
You only need to edit libgdal.py (as Roberto Ribeiro has said that If you are using GDAL version 2.x and probably not your case .
Comments
Post a Comment