Hello
I am trying to read an exported LAS file in python with PYLAS but I get an error saying: "Error: File Signature (b'<?xm') is not b'LASF'"
I am using this code to export the dense cloud as LAS file:
chunk.exportPoints(path=projectPath + tempFileName,
source_data=Metashape.DenseCloudData,
save_normals=True,
save_colors=True,
save_classes=True,
save_confidence=True,
format=Metashape.PointsFormatLAS
)
and this bit to read the file:
las = pylas.read(projectPath+projectFile)
I only get this error from files exported in Metashape ( my current version is v1.7.1 build 11797). I have tried manual export with the default settings but to no avail. If I read a file I downloaded from the internet for testing, it works without problems.
What could be the problem here?
Thank you for your help.