Skip to content
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

use summary( ) or print( ) function report error #637

Closed
zzk112233 opened this issue Nov 11, 2022 · 5 comments
Closed

use summary( ) or print( ) function report error #637

zzk112233 opened this issue Nov 11, 2022 · 5 comments
Assignees
Labels
Bug A bug in the package

Comments

@zzk112233
Copy link

Dear author:
When I use summary() or print () to check point cloud basic information, R always reports error :
Error in if (is.na(units)) "units" else units :
argument is of length zero.
Can you tell me how to end this error? Looking forward to your reply! Thank you~

@Jean-Romain
Copy link
Collaborator

Please report a minimal reproducible example

@zzk112233
Copy link
Author

Here is example:

library("lidR")
lidR 4.0.1 using 6 threads. Help on <gis.stackexchange.com>. Bug report on <github.com/r-lidar/lidR>.
las <- readLAS("G:\LiDAR数据\近自然经营LiDAR数据\预处理数据\裁\YW\新建文件夹\0.02 pre_ YW01CKK_2022_12.las")
summary(las)
Error in if (is.na(units)) "units" else units :
argument is of length zero
print(las)
Error in if (is.na(units)) "units" else units :
argument is of length zero

@Jean-Romain
Copy link
Collaborator

Can you share the file or a subset of the file that allow to reproduce.

@zzk112233
Copy link
Author

zzk112233 commented Nov 14, 2022

Here is subset of the file

@Jean-Romain
Copy link
Collaborator

Fixed but your CRS seems invalid

@Jean-Romain Jean-Romain self-assigned this Mar 8, 2023
@Jean-Romain Jean-Romain added the Bug A bug in the package label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the package
Projects
None yet
Development

No branches or pull requests

2 participants