Changeset 876:91d5d1d059ff


Ignore:
Timestamp:
02/05/09 19:03:13 (19 months ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
1.0
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/branches/1.0@1001
Message:

backport r1000 for #89

Location:
python/liblas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/liblas/__init__.py

    r657 r876  
    11from core import * 
     2version = core.get_version() 
    23import file 
    34import point 
  • python/liblas/core.py

    r870 r876  
    9999 
    100100    size = ctypes.c_int() 
    101     retvalue = ctypes.string_at(result, size.value)[:] 
     101    retvalue = ctypes.string_at(result) 
    102102    free(result) 
    103103    return retvalue 
     
    145145def get_version(): 
    146146    return las.LAS_GetVersion() 
    147  
     147     
     148version = get_version() 
    148149 
    149150las.LAS_GetVersion.restype = ctypes.POINTER(ctypes.c_char) 
    150151las.LAS_GetVersion.errcheck = free_returned_char_p 
    151152 
    152 version = get_version() 
    153153las.LAS_GetVersion.restype = ctypes.c_char_p 
    154154las.LASError_GetLastErrorNum.restype = ctypes.c_int 
Note: See TracChangeset for help on using the changeset viewer.