[Liblas-commits] r1000 - trunk/python/liblas
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Feb 5 22:01:20 EST 2009
Author: hobu
Date: Thu Feb 5 22:01:20 2009
New Revision: 1000
URL: http://liblas.org/changeset/1000
Log:
re-fix #89 liblas.version
Modified:
trunk/python/liblas/__init__.py
trunk/python/liblas/core.py
Modified: trunk/python/liblas/__init__.py
==============================================================================
--- trunk/python/liblas/__init__.py (original)
+++ trunk/python/liblas/__init__.py Thu Feb 5 22:01:20 2009
@@ -1,4 +1,5 @@
from core import *
+version = core.get_version()
import file
import point
import header
Modified: trunk/python/liblas/core.py
==============================================================================
--- trunk/python/liblas/core.py (original)
+++ trunk/python/liblas/core.py Thu Feb 5 22:01:20 2009
@@ -98,7 +98,7 @@
def free_returned_char_p(result, func, cargs):
size = ctypes.c_int()
- retvalue = ctypes.string_at(result, size.value)[:]
+ retvalue = ctypes.string_at(result)
free(result)
return retvalue
@@ -144,12 +144,12 @@
def get_version():
return las.LAS_GetVersion()
-
+
+version = get_version()
las.LAS_GetVersion.restype = ctypes.POINTER(ctypes.c_char)
las.LAS_GetVersion.errcheck = free_returned_char_p
-version = get_version()
las.LASError_GetLastErrorNum.restype = ctypes.c_int
las.LASError_GetLastErrorMsg.restype = ctypes.POINTER(ctypes.c_char)
More information about the Liblas-commits
mailing list