-
Notifications
You must be signed in to change notification settings - Fork 29
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
Create STAC Item for .las (and .laz) pointclouds #71
Conversation
This code lives in Entwine. We could put it to the |
Turns out I'm dumb and the PDAL Python reader does support network access. So this is ready for review. |
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
==========================================
+ Coverage 85.40% 85.58% +0.17%
==========================================
Files 83 87 +4
Lines 2474 2566 +92
==========================================
+ Hits 2113 2196 +83
- Misses 361 370 +9
Continue to review full report at Codecov.
|
Adds `stactools.pointcloud.create_item`, which takes a single `href` and creates a STAC item. Also adds a command line tool to execute. Design decisions: - By default, only read the header of the file (as best as we can). An argument, `calculate_statistics`, can optionally instruct `create_item` to read the entire file and calculate statistics. - Uses [PDAL](https://pdal.io) to read the file, which in theory will enable building STAC items from other flavors of pointcloud (anything readable by PDAL). We can't just drop in any file right away, though, because we use LAS header values to build the item. Support for other pointcloud formats will require writing some sort of converter from format-specific metadata values to STAC values.
Closed in favor of https://github.com/stactools-packages/stactools-pointcloud as a part of #111. |
Related issue(s): #44
Description: API function and CLI tool to create STAC Items from pointclouds. We're using PDAL, which will enable us to (eventually) support formats other than la{s|z}. However, right now the STAC item is built from fields from the las header, so other formats are explicitly denied for now.