Changeset 7100
- Timestamp:
- 02/08/08 08:42:37 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/geos/libgeos.py
r6978 r7100 8 8 """ 9 9 import atexit, os, re, sys 10 from ctypes import c_char_p, string_at,Structure, CDLL, CFUNCTYPE, POINTER10 from ctypes import c_char_p, Structure, CDLL, CFUNCTYPE, POINTER 11 11 from django.contrib.gis.geos.error import GEOSException 12 12 … … 93 93 return GeomArr() 94 94 95 def geos_version(): 96 "Returns the string version of GEOS." 97 return string_at(lgeos.GEOSversion()) 95 # Returns the string version of the GEOS library. Have to set the restype 96 # explicitly to c_char_p to ensure compatibility accross 32 and 64-bit platforms. 97 geos_version = lgeos.GEOSversion 98 geos_version.argtypes = None 99 geos_version.restype = c_char_p 98 100 99 101 # Regular expression should be able to parse version strings such as
