The text reader reads data from ASCII text files. Each point is represented in the file as a single line. Each line is expected to be divided into a number of fields by a separator. Each field represents a value for a point’s dimension. Each value needs to be formatted properly for C++ language double-precision values.

The text reader expects a header line to indicate the dimensions are in each subsequent line. There are two types of header lines.

Quoted dimension names

When the first character of the header is a double quote, each dimension name is assumed to be surrounded by double quotes. Any text following a quoted dimension name and the start of the next dimension name is ignored. The separator option can’t be used with quoted dimension names.

Unquoted dimension names

The first non alpha-numeric character encountered is treated as a separator between dimension names. The separator in the header line can be overridden by the separator option.

Each line in the file must contain the same number of fields as indicated by dimension names in the header. Spaces are generally ignored in the input unless used as a separator. When a space character is used as a separator, any number of consecutive spaces are treated as single space and leading/trailing spaces are ignored.

Blank lines are ignored after the header line is read.

Default Embedded Stage

This stage is enabled by default

Streamable Stage

This stage supports streaming operations

Example Input File

This input file contains X, Y and Z value for 10 points.


Example #1


Example #2

This reads the data in the input file as Red, Green and Blue instead of as X, Y and Z.

        "header":"Red, Green, Blue",



text file to read [Required]


Maximum number of points to read. [Default: unlimited]


Spatial reference to apply to the data. Overrides any SRS in the input itself. Can be specified as a WKT, proj.4 or EPSG string. [Default: none]


String to use as the file header. All lines in the file are assumed to be records containing point data unless skipped with the skip option. [Default: None]


Separator character to override that found in header line. [Default: None]


Number of lines to ignore at the beginning of the file. [Default: 0]