[pdal] Reader text and separator

Lars laasunde at hotmail.com
Tue Apr 17 04:03:04 PDT 2018


The following data works:

X,Y,Z

1.1,2.2,3.3

4.4,5.5,6.6


The following data does not work.

X Y Z

1.1 2.2 3.3

4.4 5.5 6.6


The following error messages are displayed;

(pdal pipeline readers.text Error) Can't convert field '' to numeric value on line 2 in 'C:\bla\bla\file.txt'. Setting to 0.

(pdal pipeline readers.text Error) Can't convert field '' to numeric value on line 3 in 'C:\bla\bla\file.txt'. Setting to 0.

Appreciate any help.


kind regards, Lars

________________________________
Fra: Andrew Bell <andrew.bell.ia at gmail.com>
Sendt: 17. april 2018 12:04
Til: Lars
Kopi: pdal at lists.osgeo.org
Emne: Re: [pdal] Reader text and separator

Please provide the first few lines of a file that you believe isn't being handled as described in the documentation.

Thanks

On Tue, Apr 17, 2018, 5:06 AM Lars <laasunde at hotmail.com<mailto:laasunde at hotmail.com>> wrote:

Hello again,


The documentation for readers.text says "Any single non-alphanumeric character can be used as a separator." - does this include space? [which is an non-alphanumeric character]


Ran PDAL 1.5 with pipeline using readers.text;

- using semi-colan as separator in header and data and it works.

- using space as separator in header and data and it does not works.


Viewing the PDAL source code, specifically TextReader::initalize, I see the comment "Scan string for some character not a number, space or letter.".


If space is not supported as separator, please consider updating documentation.


kind regards, Lars

_______________________________________________
pdal mailing list
pdal at lists.osgeo.org<mailto:pdal at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/pdal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20180417/120784ab/attachment.html>


More information about the pdal mailing list