Remove Duplicates works in GUI but not in Command Line
Cloudcompare version 2.13 Alpha 64 bit Windows 11
CloudCompare.exe -SILENT -O "D:\...\test.las" -RDP -SAVE_CLOUDS FILE "...\test_dup.las"
Then when opening the file in CC
[LAS] laszip error" '(null)'
An error occurred while loading 'test.las': the third-party library in charge of saving/loading the file has failed to perform the operation
=========================
Opening the command line generated test_dup.las in Notepad++
CCB25 t e s t . l a s . c l e a n
& L A S . g l o b a l _ e n c o d i n g L A S . o f f s e t . x L A S . o f f s e t . y L A S . o f f s e t . z L A S . p o i n t _ f o r m a t L A S . p r o j e c t _ u u i d L A S . s c a l e . x ?PbMÒñ©ü L A S . s c a l e . y ?PbMÒñ©ü L A S . s c a l e . z ?PbMÒñ©ü * L A S . s y s t e m _ i d e n t i f i e r
@ L A S t o o l s ( c ) b y M a r t i n I s e n b u r g " L A S . v e r s i o n . m a j o r " L A S . v e r s i o n . m i n o r L A S . v l r s LasVlr ð? ¾8p zCd»ÁB;_ÇBÛyCÛ¹ÁB;_ÇBšyCÕ¸ÁB;_ÇBXyCÏ·ÁB;_ÇByCF¶ÁB;_ÇB“xC9
...
Opening the GUI generated test_dup.las in Notepad++
=========================
LASF LASzip DLL 3.4 r3 (191111) çã ¾8p ¾8p ü©ñÒMbP?ü©ñÒMbP?ü©ñÒMbP? Ãõ(\ºe@¤p=
×—a@žï§ÆKW^@Âõ(\S@•C‹l·[@®GázÎX@ name g test test guid g 0000000000000001ô
ZŸ 0000000000000001 description g Compatibility Mode Compatibility Mode sensorSoftwareVeg Leica Geosystemsú
PŸ Leica GeosystemsÍK bz f… K A DÌK _z f… K B CËK ]z f… L C CÊK [z f… M D EÉK Xz f…
Remove Duplicates works in GUI but not in Command Line
-
- I have made <0 posts
- Posts: 5
- Joined: Wed Jan 25, 2023 9:20 am
- 1
- Full Name: Bob Marley
- Company Details: scancorp
- Company Position Title: worker
- Country: Australia
- Linkedin Profile: No
- Jason Warren
- Administrator
- Posts: 4224
- Joined: Thu Aug 16, 2007 9:21 am
- 16
- Full Name: Jason Warren
- Company Details: Laser Scanning Forum Ltd
- Company Position Title: Co-Founder
- Country: UK
- Skype Name: jason_warren
- Linkedin Profile: No
- Location: Retford, UK
- Has thanked: 443 times
- Been thanked: 246 times
- Contact:
Re: Remove Duplicates works in GUI but not in Command Line
Hi,
Are you running the command line as Administrator?
Press ⊞ Win+S.
Type cmd.
Right-click Command Prompt.
Click Run as administrator.
Are you running the command line as Administrator?
Press ⊞ Win+S.
Type cmd.
Right-click Command Prompt.
Click Run as administrator.
Jason Warren
Co_Founder
Dedicated to 3D Laser Scanning
LaserScanningForum
Co_Founder
Dedicated to 3D Laser Scanning
LaserScanningForum
-
- I have made <0 posts
- Posts: 5
- Joined: Wed Jan 25, 2023 9:20 am
- 1
- Full Name: Bob Marley
- Company Details: scancorp
- Company Position Title: worker
- Country: Australia
- Linkedin Profile: No
Re: Remove Duplicates works in GUI but not in Command Line
It would have been awesome..Unfortunately exactly same result.Jason Warren wrote: ↑Wed Jan 25, 2023 5:27 pm Hi,
Are you running the command line as Administrator?
Press ⊞ Win+S.
Type cmd.
Right-click Command Prompt.
Click Run as administrator.
I wonder is any command or command order I am missing?
-
- I have made <0 posts
- Posts: 5
- Joined: Wed Jan 25, 2023 9:20 am
- 1
- Full Name: Bob Marley
- Company Details: scancorp
- Company Position Title: worker
- Country: Australia
- Linkedin Profile: No
Re: Remove Duplicates works in GUI but not in Command Line
Can you suggest any other free tools that is command line and fast at removing duplicate points?
We have massive las/laz, files but LasTools needs license
Tried WhiteboxTools but its LidarRemoveDuplicates command is incredibly slow
https://www.whiteboxgeo.com/manual/wbt_ ... Duplicates
will look at lasPy, but rather not do all that python work just for this one function
Cheers
We have massive las/laz, files but LasTools needs license
Tried WhiteboxTools but its LidarRemoveDuplicates command is incredibly slow
https://www.whiteboxgeo.com/manual/wbt_ ... Duplicates
will look at lasPy, but rather not do all that python work just for this one function
Cheers
-
- V.I.P Member
- Posts: 916
- Joined: Tue May 11, 2021 5:36 pm
- 2
- Full Name: Adam Berta
- Company Details: InnoScan 3D Hungary Kft
- Company Position Title: unknown
- Country: Hungary
- Linkedin Profile: No
- Has thanked: 51 times
- Been thanked: 297 times
- Contact:
Re: Remove Duplicates works in GUI but not in Command Line
It is not even openong the file maybe you have special utf8 chars in the path.
I use pdal for everything. In point cloud processing.
I use pdal for everything. In point cloud processing.
- danielgm
- V.I.P Member
- Posts: 195
- Joined: Thu Jun 20, 2013 10:45 am
- 10
- Full Name: Daniel Girardeau-Montaut
- Company Details: CloudCompare
- Company Position Title: Administrator
- Country: France
- Linkedin Profile: Yes
- Location: Grenoble, France
- Has thanked: 11 times
- Been thanked: 34 times
- Contact:
Re: Remove Duplicates works in GUI but not in Command Line
Hi @marumasa, can you maybe share a file with me so that I can take a look at what's going on? (you can send it to admin[at]cloudcompare.org).
-
- I have made <0 posts
- Posts: 5
- Joined: Wed Jan 25, 2023 9:20 am
- 1
- Full Name: Bob Marley
- Company Details: scancorp
- Company Position Title: worker
- Country: Australia
- Linkedin Profile: No
Re: Remove Duplicates works in GUI but not in Command Line
Hi Guys
Thanks for feedback.
I have tried giving it direct path on C, with no special characters and run as admin etc
It is the same no matter the las/las file. So I dont think its file specific
I read that the remove dupicates -RDP is new for Cloudcompare version 2.13 Alpha 64 bit
I am 'assuming' it was tested in the GUI but there is some internal bug for the command line
It does create the output laz, but its actually bigger than the original and cant be opened
Can anybody actually get it working on command line?
Whats the chance of having this fixed if its a bug
Anyway, for reference I also tried the .laz made from the BunnyDouble.e57 sample
http://www.libe57.org/data.html
https://sourceforge.net/projects/e57-3d ... 7/download
Cheers
Thanks for feedback.
I have tried giving it direct path on C, with no special characters and run as admin etc
It is the same no matter the las/las file. So I dont think its file specific
I read that the remove dupicates -RDP is new for Cloudcompare version 2.13 Alpha 64 bit
I am 'assuming' it was tested in the GUI but there is some internal bug for the command line
It does create the output laz, but its actually bigger than the original and cant be opened
Can anybody actually get it working on command line?
Whats the chance of having this fixed if its a bug
Anyway, for reference I also tried the .laz made from the BunnyDouble.e57 sample
http://www.libe57.org/data.html
https://sourceforge.net/projects/e57-3d ... 7/download
Cheers
- danielgm
- V.I.P Member
- Posts: 195
- Joined: Thu Jun 20, 2013 10:45 am
- 10
- Full Name: Daniel Girardeau-Montaut
- Company Details: CloudCompare
- Company Position Title: Administrator
- Country: France
- Linkedin Profile: Yes
- Location: Grenoble, France
- Has thanked: 11 times
- Been thanked: 34 times
- Contact:
Re: Remove Duplicates works in GUI but not in Command Line
As discussed by email, it was simply because the command line is quite dumb, and you have to explicitly set the export format with -C_EXPORT_FMT LAS, (before -SAVE_CLOUDS). Otherwise CC uses the BIN format by default, whatever the file extension...
-
- I have made <0 posts
- Posts: 5
- Joined: Wed Jan 25, 2023 9:20 am
- 1
- Full Name: Bob Marley
- Company Details: scancorp
- Company Position Title: worker
- Country: Australia
- Linkedin Profile: No
Re: Remove Duplicates works in GUI but not in Command Line
Tested and works!
Thans so much, I should have tried that
Also tested with -C_EXPORT_FMT LAZ
..now I see during the remove duplicates it is sorting, is the output sorted? That would be good. I cant see a sort argument
Thanks again
Thans so much, I should have tried that
Also tested with -C_EXPORT_FMT LAZ
..now I see during the remove duplicates it is sorting, is the output sorted? That would be good. I cant see a sort argument
Thanks again