Skip to content
Commits on Source (4)
Metadata-Version: 1.2
Name: PDAL
Version: 2.2.1
Version: 2.2.2
Summary: Point cloud data processing
Home-page: http://pdal.io
Author: Howard Butler
......
2.2.1
\ No newline at end of file
python-pdal (2.2.2+ds-1) unstable; urgency=medium
* New upstream release.
-- Bas Couwenberg <sebastic@debian.org> Fri, 20 Sep 2019 06:50:01 +0200
python-pdal (2.2.1+ds-1) unstable; urgency=medium
* New upstream release.
......
......@@ -74,7 +74,7 @@ private:
Array& operator=(Array const& rhs);
Fields m_fields;
bool m_rowMajor;
Shape m_shape;
Shape m_shape {};
std::vector<std::unique_ptr<ArrayIter>> m_iterators;
};
......
__version__='2.2.1'
__version__='2.2.2'
from .pipeline import Pipeline
from .array import Array
......
This diff is collapsed.
......@@ -106,7 +106,6 @@ cdef class PyPipeline:
cdef Array* a
if arrays is not None:
print("Looping arrays\n")
for array in arrays:
a = new Array(array)
c_arrays.push_back(a)
......
......@@ -91,9 +91,6 @@ open_kwds = {}
if sys.version_info >= (3,):
open_kwds['encoding'] = 'utf-8'
with open('VERSION.txt', 'w', **open_kwds) as fp:
fp.write(str(module_version))
with open('README.rst', 'r', **open_kwds) as fp:
readme = fp.read()
......
......@@ -159,6 +159,39 @@ class TestArrayLoad(PDALTest):
self.assertEqual(len(data), 12)
self.assertEqual(data['Intensity'].sum(), 1926)
def test_read_arrays(self):
"""Can we read and filter data from a list of arrays to PDAL"""
if Version(pdal.info.version) < Version('1.8'):
return True
# just some dummy data
x_vals = [1.0, 2.0, 3.0, 4.0, 5.0]
y_vals = [6.0, 7.0, 8.0, 9.0, 10.0]
z_vals = [1.5, 3.5, 5.5, 7.5, 9.5]
test_data = np.array(
[(x, y, z) for x, y, z in zip(x_vals, y_vals, z_vals)],
dtype=[('X', np.float), ('Y', np.float), ('Z', np.float)]
)
pipeline = """
{
"pipeline": [
{
"type":"filters.range",
"limits":"X[2.5:4.5]"
}
]
}
"""
p = pdal.Pipeline(pipeline, arrays=[test_data,])
p.loglevel = 8
count = p.execute()
arrays = p.arrays
self.assertEqual(count, 2)
self.assertEqual(len(arrays), 1)
class TestDimensions(PDALTest):
def test_fetch_dimensions(self):
"""Ask PDAL for its valid dimensions list"""
......