﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12439	geos and gdal libraries need to be prefixed by 'cyg' under cygwin	kiorky <kiorky@…>	nobody	"This fix is trivial and prevent cygwin errors when trying to find the geos and gdal libraries.
Its related also to:

http://trac.osgeo.org/gdal/ticket/3301


{{{
svn diff  django/contrib/gis/geos/libgeos.py django/contrib/gis/gdal/libgdal.py
Index: django/contrib/gis/geos/libgeos.py
===================================================================
--- django/contrib/gis/geos/libgeos.py  (revision 11971)
+++ django/contrib/gis/geos/libgeos.py  (working copy)
@@ -38,6 +38,9 @@
         lib_path = find_library(lib_name)
         if not lib_path is None: break

+if 'cygwin' in sys.platform:
+    lib_path = 'cyggeos_c-1.dll'
+
 # No GEOS library could be found.
 if lib_path is None:
     raise ImportError('Could not find the GEOS library (tried ""%s""). '
Index: django/contrib/gis/gdal/libgdal.py
===================================================================
--- django/contrib/gis/gdal/libgdal.py  (revision 11971)
+++ django/contrib/gis/gdal/libgdal.py  (working copy)
@@ -28,6 +28,9 @@
         lib_path = find_library(lib_name)
         if not lib_path is None: break

+if 'cygwin' in sys.platform:
+    lib_path = 'cyggdal-1.dll'
+
 if lib_path is None:
     raise OGRException('Could not find the GDAL library (tried ""%s""). '
                        'Try setting GDAL_LIBRARY_PATH in your settings.' %
}}}"		closed	GIS	1.1		wontfix			Design decision needed	1	0	0	0	0	0
