Edit global shift and scale by command line

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
PSpohn
Posts: 6
Joined: Tue Feb 16, 2021 3:07 pm

Edit global shift and scale by command line

Post 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.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Edit global shift and scale by command line

Post 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.
Daniel, CloudCompare admin
PablerasBCN
Posts: 296
Joined: Sat Jan 20, 2018 1:57 pm

Re: Edit global shift and scale by command line

Post 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
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Edit global shift and scale by command line

Post 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...
Daniel, CloudCompare admin
PSpohn
Posts: 6
Joined: Tue Feb 16, 2021 3:07 pm

Re: Edit global shift and scale by command line

Post by PSpohn »

Hello Daniel

Did you had time to implement my requested feature?
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Edit global shift and scale by command line

Post by daniel »

Ah no...
Daniel, CloudCompare admin
Post Reply