Changeset 1307:47aa99c03689
- Timestamp:
- 09/30/09 09:05:27 (10 months ago)
- Branch:
- default
- Files:
-
- 4 edited
-
.hgignore (modified) (1 diff)
-
python/liblas/core.py (modified) (1 diff)
-
python/liblas/file.py (modified) (2 diffs)
-
python/liblas/point.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
.hgignore
r1306 r1307 37 37 python/dist/* 38 38 python/libLAS.egg-info/* 39 python/liblas/*.pyc -
python/liblas/core.py
r1252 r1307 587 587 las.LASPoint_SetColor.errcheck = check_return 588 588 589 las.LASPoint_Destroy.argtypes = [ctypes.c_void_p] 590 las.LASPoint_Destroy.errcheck = check_void_done 591 las.LASPoint_Destroy.restype = None 592 589 593 las.LASSRS_Create.errcheck = check_void 590 594 las.LASSRS_Create.restype = ctypes.c_void_p -
python/liblas/file.py
r1223 r1307 132 132 def read(self, location): 133 133 if self.mode == 0: 134 return point.Point(handle=core.las.LASReader_GetPointAt(self.handle, location), owned= False,copy=True)134 return point.Point(handle=core.las.LASReader_GetPointAt(self.handle, location), copy=True) 135 135 136 136 def __iter__(self): … … 139 139 p = core.las.LASReader_GetNextPoint(self.handle) 140 140 while p and not self.at_end: 141 yield point.Point(handle=p, owned= False,copy=True)141 yield point.Point(handle=p, copy=True) 142 142 p = core.las.LASReader_GetNextPoint(self.handle) 143 143 if not p: -
python/liblas/point.py
r1223 r1307 52 52 if copy: 53 53 self.handle = core.las.LASPoint_Copy(handle) 54 self._owned = True 54 55 else: 55 56 self.handle = handle 57 self._owned = False 56 58 else: 57 59 self.handle = core.las.LASPoint_Create() 58 if not copy: 59 self.owned = owned 60 else: 61 self.owned = True 60 self._owned = True 62 61 def __del__(self): 63 if self. owned:62 if self._owned: 64 63 if self.handle and core: 65 64 core.las.LASPoint_Destroy(self.handle)
Note: See TracChangeset
for help on using the changeset viewer.
