CloudCompare-PythonRuntime icon indicating copy to clipboard operation
CloudCompare-PythonRuntime copied to clipboard

Get+write wkt-projection-epsg and time-shift (to GPS Time) from/to pointlcoud

Open mariolino007 opened this issue 8 months ago • 3 comments

Hi Thomas is there a possibility of reading and assigning the wkt projection and timeshift (of GPS Time) to a point cloud? Thanks Mario

mariolino007 avatar Mar 25 '25 15:03 mariolino007

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 ?

tmontaigu avatar Apr 02 '25 17:04 tmontaigu

loading LAS file with WKT this are the data

Image

mariolino007 avatar Apr 05 '25 17:04 mariolino007

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"))

tmontaigu avatar Apr 14 '25 16:04 tmontaigu

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 !!!!

mariolino007 avatar May 22 '25 12:05 mariolino007