-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PointCloudLayer #322
Comments
Relevant comment for adding a new layer to lonboard: #302 (comment) For PointCloudLayer, for So in deck.gl-layers, we can create a new type called Then create a new file, matching the types of the First create a PR there that we can discuss, and then after that we can go through how to add a new validator for this |
Also note that PDAL has a list of dimensions that are available for each point. This
So when we load from PDAL, we can presumably get a numpy array for each dimension. We can interleave that into a 2D array with shape |
What is the |
|
Okay I think I get it. So the lonboard python interface would perform this flatten/interleave of the PDAL array shape. The PDAL array shape is like... [[X],[Y],[Z]]. And converting that a numpy array of (3, N).... (3, [x,y,z]) |
Non urgent question - |
The import numpy as np
x = np.arange(0, 5)
y = np.arange(5, 10)
z = np.arange(10, 15)
points = np.vstack([x, y, z]).T
points
# array([[ 0, 5, 10],
# [ 1, 6, 11],
# [ 2, 7, 12],
# [ 3, 8, 13],
# [ 4, 9, 14]])
points.shape
# (5, 3)
Well, PDAL has its own integration with numpy. So you can probably access a pdal source in the form of I always get the axis ordering of
On the deck.gl side, floats are uploaded to the GPU as float32. Since it has x, y, and z values, it has size 3 per row. In Arrow, the memory underlying a FixedSizeList[3] is 100% equivalent to a numpy array of shape |
Closed with #396 |
@naomatheus was asking about using the PointCloudLayer in lonboard.
getNormal
accessor for point clouds specifically. (I have to do more research to understand exactly how this would be used)Note that the layer itself and the views are two distinct streams of work.
Tasks
The text was updated successfully, but these errors were encountered: