Closed MBunel closed 1 year ago
Does the Java bindings have the preview()
method for pdal::Stage
? This is what you want...
Nope, its not exposed.
I guess we need to implement smth similar to Pythons getQuickInfo
There's also https://github.com/geotrellis/geotrellis-pointcloud (which is slightly outdated), but may be of help (since I see some Spark code)! It does not implement DataSourcesV2 API sadly (yet, some attention and time needed for the project).
Hey @MBunel see https://github.com/PDAL/java/pull/70 with the quickInfo
exposed.
Also most likely for the needs in the question the metadata could suffice!
Many thanks for this implementation.
Hi,
I'm trying to use pdal's java bindings to read las and laz point clouds in Scala (as shown in the documentation), and I have some slowness problems. When I run the method execute (see below) my code takes a long time to run, as if calling the execute method loaded all the points in memory.
The main problem is that it's impossible to access the header content before calling the execute method, but I'd like to use the header content to filter the files I actually want to read.
I haven't found a solution to this problem in the java biding. They don't seem to expose a solution for easily reading a las file, for example with a pointer on files, as proposed in a lib like las_rs. However, I haven't looked at the C++ api, so I don't know whether this is a limitation of the java bindings, or a pdal design choice.
So I have two questions:
Thanks
This is the current version of my code.