Page 1 of 2

[FIXED] Global shift- problem with original coordinates

Posted: Tue Jul 15, 2014 12:11 pm
by MatBo
Hi!
I found a problem with exporting original coordinates.
When I export original coordinates it does not calculate in global shift correctly. All the exported coordinates have negative sign. if I modify global shift and if I delete minus before x an y in global shift then the exportation is correct.

I tried this out in version 2.5.4.1 and beta 2.5.5.

Re: Global shift- problem with original coordinates

Posted: Tue Jul 15, 2014 4:12 pm
by daniel
In which format are you exporting data? Ascii?

Re: Global shift- problem with original coordinates

Posted: Thu Jul 17, 2014 10:58 am
by Nathalie Morin
Hello,

I encountered the same problem using Edit -> Global Shift. It seems that Cloud Compare inverts the sign of original coordinates with positive sign. The solution I use is to invert the sign of the xyz coordinates, just put a minus in front, when you enter them in Global Shift. Then you can save your point cloud in ASCII format and the coordinates should be positive again if you read them in another program or reopen them in Cloud Compare (which will automatically do the conversion).

Re: Global shift- problem with original coordinates

Posted: Mon Jul 21, 2014 3:43 pm
by daniel
I can't reproduce the bug (not with the 2.5.4.1 at least).

Are you sure you don't misinterpret the 'shift' meaning? The shift vector is the one applied to the data when they are loaded. If the cloud is around X = 520 000, the xShift = -520 000. And when saving the file, CC will compute 'xLocal - xShift'.

Re: Global shift- problem with original coordinates

Posted: Wed Jul 23, 2014 10:09 am
by Nathalie Morin
It seems that Cloud Compare inverts the signs of xyz coordinates or even rotation angle, including in the latest released version 2.5.5.2

For example if my original xyz UTM coordinates are :
633 170,05
5 388 211,63
107,38

In Menu Edit -> Global shift and scale, just type them with a minus in front, and it will be saved as positive when you export in ASCII format
- 633 170,05
- 5 388 211,63
- 107,38

Analogically, for a rotation angle, in Menu Edit -> Apply transformation -> Axis, Angle tab, activate the check box "Apply Inverse transformation"

Re: Global shift- problem with original coordinates

Posted: Wed Jul 23, 2014 1:33 pm
by MatBo
Yes the only way to export them correctly was when I deleted the minus sign in global shift.

Re: Global shift- problem with original coordinates

Posted: Wed Jul 23, 2014 1:34 pm
by MatBo
daniel wrote:In which format are you exporting data? Ascii?
yes ASCII format

Re: Global shift- problem with original coordinates

Posted: Wed Jul 23, 2014 1:52 pm
by daniel
Do you reproduce this bug with the new version (2.5.5.2)?

Re: Global shift- problem with original coordinates

Posted: Wed Jul 30, 2014 11:46 am
by MatBo
can you give me the link to last version?

the problem is when I export picked points in the cloud.

MatBo

Re: Global shift- problem with original coordinates

Posted: Wed Jul 30, 2014 12:05 pm
by daniel
Well the latest version is on the website: http://www.cloudcompare.org/release (v2.5.5.2).

But I didn't understood that you were speaking of picked points. I'll check this right away.