/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/resource.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/resource.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1229 by jonathan, Thu Jun 12 17:01:13 2003 UTC revision 1230 by jonathan, Wed Jun 18 14:46:43 2003 UTC
# Line 26  PROJ_EXT = ".proj" Line 26  PROJ_EXT = ".proj"
26    
27  has_gdal_support = lambda: False  has_gdal_support = lambda: False
28  try:  try:
29        # first try to see if our extension module is there. if it
30        # wasn't even compiled, we obviously don't have gdal support.
31        import gdalwarp
32    
33        # now try to import the python extension. if this doesn't
34        # exist then we can't do anything.
35      import gdal      import gdal
36    
37      """Return True if the gdal library is available."""      """Return True if the gdal library is available."""
38      has_gdal_support = lambda: True      has_gdal_support = lambda: True
39  except ImportError:  except ImportError:

Legend:
Removed from v.1229  
changed lines
  Added in v.1230

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26