CsvGeoPathReader
Description
- Derived from
-
GeoPathReader<GeoPathSample, GeoPathSampleTrait> abstract
Full source code is included in the Tinman 3D SDK download. |
A IGeoPathReader for GeoPathSample values that parses a text file with comma-separated values (CSV).
This reader reads GeoPathSample values and expects that all GeoPathValues are present in the CSV file. It is intended to be an example for implementing a custom IGeoPathReader. Please have a look at the TableGeoPathReader class, which is the recommended way for reading tabular geo path data.
Public / Constructors
CsvGeoPathReader
Creates a new instance of CsvGeoPathReader.
The default mapping from geo path columns (see Columns) to CSV file columns (see CsvReader.ReadLine) is the following:
where n
is the zero-based CSV file column index.
- IOException
-
If an I/O error has occurred.
Public / Methods
Mapping
2 overloads
Specifies the mapping from the given zero-based column index of the CSV file and the geo path column.
Specifies the mapping from the given zero-based column index of the CSV file and the geo path column.
- IOException
-
If there is no column of the given name or if the no header row has been read.
Transform
Specifies a linear transformation for the values that are read from the CSV file.
The linear transformation is defined as follows:
output = input * scale + offset
where input
is the value that has been read from the CSV file and output
is the value that is returned by IGeoPathReader.ReadSample.