Neighboring BIN files with different offset show far away

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
miaowang
Posts: 7
Joined: Mon Apr 15, 2019 8:54 am

Neighboring BIN files with different offset show far away

Post by miaowang »

Hi Daniel,
I have two neighboring LAS files. For each file, I load it with different offset coordinates and save as Bin. When I load the two Bin files together, they show at far away place. I also query the point coordinates of each Bin ( as attached picture ). The point at eastern Bin has smaller X value than that at the eastern Bin.
Could you please fix this bug?
Thank you.
Attachments
bin_offset_bug.png
bin_offset_bug.png (16.47 KiB) Viewed 8686 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Neighboring BIN files with different offset show far away

Post by daniel »

This is not a "bug". It is due to the fact that each entity has its own associated "Global shift" (you can see it in the entity properties). And when you save the entity to a BIN file, its "Global shift" is saved alongside.

So if you load two entities from two different BIN files, they will each have their own "Global shift" and therefore they will be projected in a different local coordinate system.

You should either load all the files during the same session before saving them as BIN files (so that they all use the same "Global shift"). Or use "bookmarks" (https://www.cloudcompare.org/doc/wiki/i ... #Bookmarks) to always apply the same shift (once again, before saving the entities to BIN files).
Daniel, CloudCompare admin
miaowang
Posts: 7
Joined: Mon Apr 15, 2019 8:54 am

Re: Neighboring BIN files with different offset show far away

Post by miaowang »

Thank you for the answer, Daniel.
Post Reply