[FIXED] Global shift- problem with original coordinates

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
MatBo
Posts: 7
Joined: Tue Jul 15, 2014 11:59 am

[FIXED] Global shift- problem with original coordinates

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

Re: Global shift- problem with original coordinates

Post by daniel »

In which format are you exporting data? Ascii?
Daniel, CloudCompare admin
Nathalie Morin
Posts: 16
Joined: Wed Nov 27, 2013 3:39 pm
Location: Strasbourg, France

Re: Global shift- problem with original coordinates

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

Re: Global shift- problem with original coordinates

Post 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'.
Daniel, CloudCompare admin
Nathalie Morin
Posts: 16
Joined: Wed Nov 27, 2013 3:39 pm
Location: Strasbourg, France

Re: Global shift- problem with original coordinates

Post 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"
MatBo
Posts: 7
Joined: Tue Jul 15, 2014 11:59 am

Re: Global shift- problem with original coordinates

Post by MatBo »

Yes the only way to export them correctly was when I deleted the minus sign in global shift.
MatBo
Posts: 7
Joined: Tue Jul 15, 2014 11:59 am

Re: Global shift- problem with original coordinates

Post by MatBo »

daniel wrote:In which format are you exporting data? Ascii?
yes ASCII format
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Global shift- problem with original coordinates

Post by daniel »

Do you reproduce this bug with the new version (2.5.5.2)?
Daniel, CloudCompare admin
MatBo
Posts: 7
Joined: Tue Jul 15, 2014 11:59 am

Re: Global shift- problem with original coordinates

Post by MatBo »

can you give me the link to last version?

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

MatBo
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Global shift- problem with original coordinates

Post 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.
Daniel, CloudCompare admin
Post Reply