Converting ASC to LAS

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
matu37
Posts: 3
Joined: Sat May 13, 2017 2:44 pm

Converting ASC to LAS

Post by matu37 »

Hi

How do i solve this issue.
Command:CloudCompare.exe -SILENT -O "filtered.asc" -NO_TIMESTAMP -C_EXPORT_FMT LAS -SOR 6 1


[LOADING]
Opening file: 'filtered.asc'
[ccGlobalShiftManager] Entity has very big coordinates: original accuracy may be lost! (you should apply a Global Shift or Scale)
[I/O] File 'filtered.asc' loaded successfully
Found one cloud with 843295 points
Output export format (clouds) set to: LAS
[SOR FILTER]
[SAVING]
PDAL exception: writers.las: Unable to convert scaled value (-2283100000) to int32 for dimension 'X' when writing LAS/LAZ file ./filtered_SOR.las.
An error occurred while saving './filtered_SOR.las': the third-party library in charge of saving/loading the file has thrown an exception
Failed to save result in file './filtered_SOR.las'
Processed finished in 3.07 s.
Example data:

-22831 2270 751 250 42 69
-22831 2533 739 255 60 99
-22832 3067 715 253 67 102
-22831 3594 734 255 122 142
-22838 1148 713 182 189 177
-22833 1461 774 214 197 185
-22834 1718 766 223 130 128
-22834 1975 762 242 46 52
-22837 2233 753 253 43 55
-22837 2495 740 255 54 84
-22837 2762 729 255 74 113
-22838 3031 711 255 69 110
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting ASC to LAS

Post by daniel »

after -O you should use "-GLOBAL_SHIFT AUTO"

And which version are you using by the way?
Daniel, CloudCompare admin
matu37
Posts: 3
Joined: Sat May 13, 2017 2:44 pm

Re: Converting ASC to LAS

Post by matu37 »

Hi

With global shift auto it give the same error. I have tried both latest stable and alpha releases.
I found a workaround using lastools. It was able to convert the ASC to LAS, but it adds a step to the procedure.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting ASC to LAS

Post by daniel »

Hum, then it must be an issue with the 'LAS_SHIFT' value. Can you maybe share the file with me so that I can test that on my side? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
Post Reply