Page 1 of 1

Edit global shift and scale by command line

Posted: Mon Feb 28, 2022 4:38 pm
by PSpohn
Hello everyone

I have many LAS files which are stored in a local system (global shift = 0.0 0.0 0.0). I need to shift them to a global system like UTM32 (global shift = 32512000 5845000 0.0).

Is there a way to edit the global shift in command line mode, like you can do it in CC directly?
https://www.cloudcompare.org/doc/wiki/i ... _and_scale
Maybe like: -SET_GLOBAL_SHIFT -32512000 -5845000 0.0

I tried to use the "-APPLY_TRANS" command. But since the shift is too far, I ran into coordinate accuracy problems because of the internal storage as 32 bit float values for the coordinates.

Re: Edit global shift and scale by command line

Posted: Wed Mar 02, 2022 8:42 pm
by daniel
Hum, good point. Sadly I don't think there's any way to do it yet! That's something we should think about, I'll add this to the TOOD list.

Re: Edit global shift and scale by command line

Posted: Fri Apr 08, 2022 7:54 am
by PablerasBCN
Daniel is the dev so likely I'm wrong but on my eyes ehe op is asking for this command that yes is pressent in the command line:
"-O -GLOBAL_SHIFT"
https://www.cloudcompare.org/doc/wiki/i ... _line_mode

Re: Edit global shift and scale by command line

Posted: Sat Apr 09, 2022 10:59 am
by daniel
-GLOBAL_SHIFT is different, as it will shift the coordinate (values) before storing them in memory. Here @PSpohn will need to virtually change the global shift, so that the points are changed at export time only...

Re: Edit global shift and scale by command line

Posted: Mon Jan 23, 2023 2:30 pm
by PSpohn
Hello Daniel

Did you had time to implement my requested feature?

Re: Edit global shift and scale by command line

Posted: Wed Jan 25, 2023 8:37 pm
by daniel
Ah no...