CloudCompare-PythonRuntime
CloudCompare-PythonRuntime copied to clipboard
Get+write wkt-projection-epsg and time-shift (to GPS Time) from/to pointlcoud
Hi Thomas is there a possibility of reading and assigning the wkt projection and timeshift (of GPS Time) to a point cloud? Thanks Mario
CloudCompare's point clouds have no concept of projection and coordinate system, and so as far as I'm aware there is no way to add this kind of information to a point cloud so that if the save format supports it is saved
As for timeshift of GPS Time do you mean the shift that cloudcompare applies internally or something else ?
loading LAS file with WKT this are the data
This is a metadata attached to the point cloud https://tmontaigu.github.io/CloudCompare-PythonRuntime/python/pycc/data_structures.html#pycc.ccObject
You can use getMetaData or SetMetadata, with the key LAS.projection
print(cloud.getMetaData("LAS.projection"))
https://github.com/CloudCompare/CloudCompare/blob/d78f8526f5f17b4d34d4a93781850f6ca6f26f7c/plugins/core/IO/qLASIO/include/LasMetadata.h#L44
https://github.com/CloudCompare/CloudCompare/blob/d78f8526f5f17b4d34d4a93781850f6ca6f26f7c/plugins/core/IO/qLASIO/src/LasMetadata.cpp#L92
its working !!!!
Thnaks !!!!