[Liblas-commits] hg: fix up block allocator
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Feb 21 14:16:51 EST 2011
details: http://hg.liblas.orghg/rev/b63a73c902b4
changeset: 2878:b63a73c902b4
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Feb 21 14:14:21 2011 -0500
description:
fix up block allocator
diffstat:
python/scripts/oci2las.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 631497eb51d2 -r b63a73c902b4 python/scripts/oci2las.py
--- a/python/scripts/oci2las.py Mon Feb 21 12:54:31 2011 -0600
+++ b/python/scripts/oci2las.py Mon Feb 21 14:14:21 2011 -0500
@@ -141,16 +141,18 @@
def write_points(self, num_points, blob):
+# print 'writing block...', num_points
+
if not self.points:
for i in xrange(num_points):
p = point.Point()
p.header = self.header
self.points.append(p)
- if (num_points > len(self.points)):
- for i in xrange(num_points):
- p = point.Point()
- p.header = self.header
- self.points.append(p)
+ if (num_points > len(self.points)):
+ for i in xrange(num_points-len(self.points)):
+ p = point.Point()
+ p.header = self.header
+ self.points.append(p)
for i in xrange(num_points):
rng = ptsize*i,ptsize*(i+1)
More information about the Liblas-commits
mailing list