/[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 1189 by jonathan, Thu Jun 12 17:01:13 2003 UTC revision 1542 by bh, Fri Aug 1 16:13:49 2003 UTC
# Line 5  Line 5 
5  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
6  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
7    
8    """Handle resources loaded from files such as projections"""
9    
10    __version__ = "$Revision$"
11    # $Source$
12    # $Id$
13    
14    
15  import os  import os
16  import os.path  import os.path
17    
# Line 26  PROJ_EXT = ".proj" Line 33  PROJ_EXT = ".proj"
33    
34  has_gdal_support = lambda: False  has_gdal_support = lambda: False
35  try:  try:
36        # first try to see if our extension module is there. if it
37        # wasn't even compiled, we obviously don't have gdal support.
38        import gdalwarp
39    
40        # now try to import the python extension. if this doesn't
41        # exist then we can't do anything.
42      import gdal      import gdal
43    
44      """Return True if the gdal library is available."""      """Return True if the gdal library is available."""
45      has_gdal_support = lambda: True      has_gdal_support = lambda: True
46  except ImportError:  except ImportError:

Legend:
Removed from v.1189  
changed lines
  Added in v.1542

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26