Hi,
Usually I try to solve all problems myself, but after days of struggle I can’t really solve this one.
Hope to get some support from you. I am having problems with Krakatoa PRT Loader importing CSV Files.
When trying to open some CSV files I get the following error. It pops up when updating particle count or when trying to render.
This is Max 2012 x64 and problem is visible on all Krakatoa versions (I tested 2.0.1, 2.0.2 and BETA 2.1.5).
Please read carefully my descriptions below.
I am importing a file saved in ANSI/Windows 1252 format (also tried Unicode).
- 6 Values are used, XYZRGB, tried with headers and without - does not matter.
- Files are split into 4MB parts. Already succeeded importing even 150MB files - it is not the matter of file size.
- No empty lines.
- CRLF end line carets.
- It is NOT syntax problem - COPY-PASTE of 1st 100 records and loading them from a test file seems to work and particles DO render.
- I also tried using different syntax and delimiters (", “, “,”,” ") etc… - no impact.
Sample data looks as follows:
-1.8862737 5.2339072 37.398249 104 108 93
-2.4525737 4.2608069 33.129249 63 55 62
-1.4356736 5.3109071 35.764948 172 146 109
-1.1466736 5.115307 33.800747 169 149 116
-2.4857737 0.50730695 34.622748 93 92 100
-3.4820737 2.0735069 37.966948 48 46 63
-2.4899737 4.2738072 33.507347 117 116 105
-3.4274737 3.628607 37.560549 99 97 106
-0.98207364 5.2002073 36.011748 107 77 53
-0.30177358 5.2680071 36.000148 187 166 140
-3.1990736 3.016807 34.475349 52 51 69
-2.5097736 4.2439071 33.66825 123 113 100
-3.1788737 1.6515069 32.761149 70 65 79
-2.9224736 4.1410071 37.371051 127 128 121
Taking my tests even further, I have isolated 2 files which seem to identical in terms of how they were created, the size, the syntax, encoding etc…, but in fact one of them does import properly and the other does not. You can download these 2 files here:
When importing or rendering in Krakatoa PRT Loader this gives me same error.
While opening in Particle Data Explorer I am able to parse first rows etc. When I am trying to load more it also crashes with the same message.
The files come from a split of a larger file (~700MB) and I am also unable to load that file.
I don’t think the file is corrupt since I was able to open it and manipulate with various text editors and pointcloud data processors.
I have tried importing the files in Leica Cyclone and it looks like the problem is the same for that software, but additionally it gives me an information about the problematic lines.
The line containing so called ‘bad’ records is 52229 from the file “Exterior_xab.csv”.
I investigated these lines and it looks also like they are normal. Nothing suspicious. Middle line is 52229
7.9950272 -19.767094 7.9689474 82 60 36
9.9177268 -19.351793 7.1968475 78 54 28
8.5610273 -19.511994 7.6186476 79 65 36
I think I tried everything, so appreciate any help on this issue.
Thanks for help.