We're running into an issue where .las point cloud files with units in feel aren't resulting in .rcs files with units in feet, but rather the same numerical value is being interpreted as a value in meters. Is there any way using the C++ API to explicitly set the output units for a generated .rcs file? I tried looking at the Autodesk::RealityComputing::Project::RCImportFilesSettings struc that gets passed to RCProjectImporter::importFiles, but that doesn't seem to have any options on it that pertain to setting units.
Hi @Anonymous,
Currently, the unit in .rcs file is saved in meter.
You can set project unit to be feet using RCProject::setUnitType() and then use the unit type information to convert the data in .rcs file to the desired unit.
Best,
Yan
Thanks for pointing out the RCProject::setUnitType method. I notice that in the example code for RCPCreator doesn't seem to actually use the RCProject class - instead, it uses RCProjectImporter::importFiles to create a RCP project on-disk that includes the .rcs files created from the input .las files whose filenames are passed to importFiles(). I don't see a way to call something like setUnitType on RCProjectImporter - is there a way to make use of RCProject in a way similar to the way the example code uses RCProjectImporter, i.e. where it takes in some input .las files and outputs .rcs files with the units set programatically?
Can't find what you're looking for? Ask the community or share your knowledge.
