Closed spolloni closed 4 years ago
This is already supported. Pass the arrays into the Pipeline constructor.
On Tue, Feb 11, 2020 at 10:02 PM spolloni notifications@github.com wrote:
I'm thinking it would be useful to allow passing arrays back into PDAL pipelines, for example:
pipeline_json = """ [ { "type": "filters.delaunay" }, { "type": "writers.gltf", "filename": "/path/to/mesh.gltf", } ] """
pipeline = pdal.Pipeline(pipeline_json) pipeline.validate() pipeline.execute(input=some_array)
where some_array is expected to conform to
some_array.dtype [('X', '<f8'), ('Y', '<f8'), ('Z', '<f8'), ('Intensity', '<u2'), ('ReturnNumber', 'u1'), ('NumberOfReturns', 'u1'), ('ScanDirectionFlag', 'u1'), ('EdgeOfFlightLine', 'u1'), ('Classification', 'u1'), ('ScanAngleRank', '<f4'), ('UserData', 'u1'), ('PointSourceId', '<u2'), ('GpsTime', '<f8'), ('OriginId', '<u4')]
Is this of interest at all? what about ease of implementation?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PDAL/python/issues/49?email_source=notifications&email_token=AAKBMMEWXJUSLUKHAXFCBQLRCNRC7A5CNFSM4KTRPQW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMZRFZQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKBMMGGXLBH6KAXVSKMGVTRCNRC7ANCNFSM4KTRPQWQ .
-- Andrew Bell andrew.bell.ia@gmail.com
thanks @abellgithub.
I'm thinking it would be useful to allow passing arrays back into PDAL pipelines, for example:
where
some_array
is expected to conform toIs this of interest at all? what about ease of implementation?