Commits

Anonymous committed 9f7a211

[1.2.X] Fixed #15194 -- Add OSGeo4W DLL library names to GEOS and GDAL interfaces. Thanks, master for ticket and initial patch.

Backport of r15852 from trunk.

Comments (0)

Files changed (2)

django/contrib/gis/gdal/libgdal.py

 if lib_path:
     lib_names = None
 elif os.name == 'nt':
-    # Windows NT shared library
-    lib_names = ['gdal17', 'gdal16', 'gdal15']
+    # Windows NT shared libraries
+    lib_names = ['gdal18', 'gdal17', 'gdal16', 'gdal15']
 elif os.name == 'posix':
     # *NIX library names.
     lib_names = ['gdal', 'GDAL', 'gdal1.7.0', 'gdal1.6.0', 'gdal1.5.0', 'gdal1.4.0']

django/contrib/gis/geos/libgeos.py

     lib_names = None
 elif os.name == 'nt':
     # Windows NT libraries
-    lib_names = ['libgeos_c-1']
+    lib_names = ['geos_c', 'libgeos_c-1']
 elif os.name == 'posix':
     # *NIX libraries
     lib_names = ['geos_c', 'GEOS']