[Liblas-devel] Python - memory leak problem
s.wong at kucerainternational.com
Mon Feb 13 12:48:59 EST 2012
I am having a memory leak problem with the following function in Python:
for p in lasPointList:
(tmpx,tmpy,tmpz) = (p.x,p.y,p.z)
h = p.header
h.scale = [0.001,0.001,0.001]
p.header = h
p.x = tmpx
p.y = tmpy
p.z = tmpz
I am trying to use this function to change an existing list of points from a default scale of 0.01 to 0.001 and keeping the coordinate values.
The memory leak probably has to do with the circular reference of the header, but that is the only way I can get the scale to change for the points.
Can someone please help me solve the memory leak or offer a workaround?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Liblas-devel