Changeset 2682 for simo


Ignore:
Timestamp:
01/10/12 06:07:12 (4 months ago)
Author:
joni
Message:

enhancement: warning on bad spatialite lib

Location:
simo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simo/trunk/dev/utils/copy_spatialite.py

    r2678 r2682  
    99datadb_path = os.path.join(base, 'src/simo/db/datadb') 
    1010spatia_path = 'parts/spatialite/lib' 
    11 iconv_path = 'parts/libiconv/lib' 
    1211 
    1312if sys.platform.startswith('darwin'): 
    1413    libfile = 'libspatialite.dylib' 
    15     icofile = '' 
    1614elif sys.platform.startswith('linux'): 
    1715    libfile = 'libspatialite.so' 
    18     icofile = 'libiconv.so' 
    1916else: 
    2017    #no buildout for windows unfortunately 
    2118    libfile = 'libspatialite-2.dll' 
    22     icofile = '' 
    2319 
    2420if not sys.platform.startswith('win'): 
  • simo/trunk/simulator/test/runner_with_spatial.ini

    r2569 r2682  
    1212 
    1313# These should usually be false if not dealing with concurrent db access. 
     14# no_wipe prevents wiping old data from the database 
    1415no_wipe_import=0 
    1516no_wipe_simulate=0 
    1617no_wipe_optimize=0 
     18# As per above. 
     19# no_exec causes the database to store up all sql executions instead of running 
     20no_exec_import=0 
     21no_exec_simulate=0 
     22no_exec_optimize=0 
     23no_exec_logger=0 
    1724 
    1825# code profiling should be set to false, used in development 
  • simo/trunk/src/simo/db/datadb/db.py

    r2677 r2682  
    10691069            self.load_extension(absfile) 
    10701070        except Exception, e: #fallback to system lib 
     1071            if not sys.platform.startswith('win'): 
     1072                self.logger.warning('Failed to load spatialite (%s), '\ 
     1073                                    'falling back to system library' \ 
     1074                                    % (str(e),)) 
    10711075            self.load_extension(libfile) 
    10721076        if first: 
Note: See TracChangeset for help on using the changeset viewer.