-
Notifications
You must be signed in to change notification settings - Fork 49
feat(rust/sedona-pointcloud) Initial LAZ format support #471
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b6a02da
Basic LAZ listing table implementation
b4l fea3774
Add license header
b4l 696926f
Configurable point encoding
b4l 9173bbc
Session context integration
b4l 4020a26
Add example
b4l 52292d5
Improve options handling
b4l 81a1afc
Rebase and address some review comments
b4l 2b6df68
Add spatial filter files pruning
b4l 4d6d499
Improve metadata size and crs handling
b4l 6da3b99
Add minimal e2e tests
b4l 86ae6e1
Use tempfile for dumy test
b4l 648607d
Keep data type of scaled extra attributes
b4l 91f97ca
Add some test to builder
b4l 1b60d11
Emit batches adhering to the target size
b4l e7f73cd
Bump las-rs/laz-rs
b4l d57a218
Add vlr data to size calculation
b4l 61ac126
Address some review comments
b4l 43803c3
Refactor point cloud options
b4l f4db461
Add some more tests
b4l 9e6488e
typo
b4l 2c7ad6c
Add license header
b4l 694bfc3
Merge branch 'main' into laz
paleolimbot dae3658
update s2geography submodule
paleolimbot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| [package] | ||
| name = "sedonadb-rust-pointcloud-example" | ||
| version = "0.0.1" | ||
| authors.workspace = true | ||
| license.workspace = true | ||
| description = "Apache SedonaDB Rust API Example" | ||
| edition.workspace = true | ||
| rust-version.workspace = true | ||
| publish = false | ||
|
|
||
| [dependencies] | ||
| sedona = { workspace = true, features = ["pointcloud"] } | ||
| sedona-pointcloud = { workspace = true } | ||
| tokio = { workspace = true, features = ["rt-multi-thread"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // Because a number of methods only return Err() for not implemented, | ||
| // the compiler doesn't know how to guess which impl RecordBatchReader | ||
| // will be returned. When we implement the methods, we can remove this. | ||
|
|
||
| use sedona::context::{SedonaContext, SedonaDataFrame}; | ||
|
|
||
| #[tokio::main] | ||
| async fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
| let ctx = SedonaContext::new_local_interactive().await?; | ||
| let url = "rust/sedona-pointcloud/tests/data/extra.laz"; | ||
| let df = ctx.sql(&format!("SELECT geometry FROM \"{url}\" ")).await?; | ||
| let output = df.show_sedona(&ctx, Some(5), Default::default()).await?; | ||
| println!("{output}"); | ||
| Ok(()) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| [package] | ||
| name = "sedona-pointcloud" | ||
| version.workspace = true | ||
| authors.workspace = true | ||
| license.workspace = true | ||
| homepage.workspace = true | ||
| repository.workspace = true | ||
| description.workspace = true | ||
| readme.workspace = true | ||
| edition.workspace = true | ||
| rust-version.workspace = true | ||
| keywords.workspace = true | ||
| categories.workspace = true | ||
|
|
||
| [dependencies] | ||
| arrow-array = { workspace = true } | ||
| arrow-buffer = { workspace = true } | ||
| arrow-schema = { workspace = true } | ||
| async-stream = "0.3.6" | ||
| async-trait = { workspace = true } | ||
| bytes = { workspace = true } | ||
| datafusion-catalog = { workspace = true } | ||
| datafusion-common = { workspace = true } | ||
| datafusion-datasource = { workspace = true } | ||
| datafusion-execution = { workspace = true } | ||
| datafusion-physical-expr = { workspace = true } | ||
| datafusion-physical-plan = { workspace = true } | ||
| datafusion-pruning = { workspace = true } | ||
| futures = { workspace = true } | ||
| geoarrow-array = { version = "0.7.0" } | ||
| geoarrow-schema = { version = "0.7.0" } | ||
| las = { version = "0.9.10", features = ["laz"] } | ||
| las-crs = { version = "1.0.0" } | ||
| laz = "0.12.0" | ||
| object_store = { workspace = true } | ||
| sedona-expr = { workspace = true } | ||
| sedona-geometry = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
| datafusion = { workspace = true, features = ["sql"] } | ||
| tempfile = { workspace = true } | ||
| tokio = { workspace = true } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.