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

plyflatten.utils.InvalidPlyCommentsError: Invalid header comments [] for ply file #7

Open
markkua opened this issue Mar 23, 2022 · 3 comments

Comments

@markkua
Copy link

markkua commented Mar 23, 2022

Hello, I'm trying to generate a DSM out of 3 point clouds.

The point clouds are originally saved as .las. I tried CloudCompare and open3D to convert .las into .ply in both binary and ASCII format. And constantly got errors like:

plyflatten.utils.InvalidPlyCommentsError: Invalid header comments [‘Created by Open3D’] for ply file MY_FILE_NAME

Then I manually remove the unwanted headers from ASCII. But I still have this error:

plyflatten.utils.InvalidPlyCommentsError: Invalid header comments [] for ply file MY_FILE_NAME

Could you please check it out and provide a possible solution.
Thanks in advance!

@ShreimHossein
Copy link

Anything updates since this issue?

@mnhrdt
Copy link
Member

mnhrdt commented Dec 21, 2022

Can you please upload a small example ply file that triggers this behavior?

@carlodef
Copy link
Member

The issue is probably that the ply file header doesn't say which Coordinate Reference System (CRS) is used.

Plyflatten looks in the header comments for a string that contains either "CRS" or "UTM", and fails if it can't find it: https://github.com/centreborelli/plyflatten/blob/master/plyflatten/utils.py#L66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants