Command Line M3C2 Invalid parameter: 1 file names, 3 clouds
Posted: Fri Jan 05, 2024 12:06 am
Hi Daniel,
I'm attempting to run m3c2 via the command line and specify the output path of the results of the calculation. Unfortunately I get an error message: "Invalid parameter: specified 1 file names,but there are 3 clouds" that I'm specifying three clouds with only one parameter file. I see in another ticket that this can be caused by an issue with spaces in filepaths, but I don't have any spaces. I wonder if there are additional characters. I'm on macOS apple silicon M1, and I've tried using CC 2.12.3 (latest stable) and CC 2.13.3 (beta). The Beta version is unable to read in the .las files (problem with the third party plugin opening the file). It's quite possible there is an issue with my syntax too :). Here is my terminal command:
open -a CloudCompare.app --args -clear -auto_save off -c_export_fmt bin \
-o -global_shift -475000 -3641000 0 \
'/path/to/dataset/xyz_canupo_noveg.las' \
-o -global_shift -475000 -3641000 0 \
'/path/to/dataset/abc_canupo_noveg.las' \
-m3c2 '/path/to/parameters/m3c2_params.txt' \
-save_clouds file '/path/to/m3c2_results/xyz_abc_results.bin'
I am able to use the params file in the GUI mode of m3c2.
let me know if you have any ideas! Thanks so much!
I'm attempting to run m3c2 via the command line and specify the output path of the results of the calculation. Unfortunately I get an error message: "Invalid parameter: specified 1 file names,but there are 3 clouds" that I'm specifying three clouds with only one parameter file. I see in another ticket that this can be caused by an issue with spaces in filepaths, but I don't have any spaces. I wonder if there are additional characters. I'm on macOS apple silicon M1, and I've tried using CC 2.12.3 (latest stable) and CC 2.13.3 (beta). The Beta version is unable to read in the .las files (problem with the third party plugin opening the file). It's quite possible there is an issue with my syntax too :). Here is my terminal command:
open -a CloudCompare.app --args -clear -auto_save off -c_export_fmt bin \
-o -global_shift -475000 -3641000 0 \
'/path/to/dataset/xyz_canupo_noveg.las' \
-o -global_shift -475000 -3641000 0 \
'/path/to/dataset/abc_canupo_noveg.las' \
-m3c2 '/path/to/parameters/m3c2_params.txt' \
-save_clouds file '/path/to/m3c2_results/xyz_abc_results.bin'
I am able to use the params file in the GUI mode of m3c2.
let me know if you have any ideas! Thanks so much!