GeoPathReaderCsv

Description

sealed class Tinman.Engine.Scenes.Data.GeoPathReaderCsv

Derived from

GeoPathReader abstract

An implementation of the IGeoPathReader interface that parses a text file with comma-separated values (CSV).

Public / Constructors

Geo​Path​Reader​Csv


public constructor GeoPathReaderCsv → (3)

csv in : Path

[not-null]
Path to the CSV file.

columns opt : int32 = 0

[>=0]
The number of columns in the CSV file. If 0, the first row will be interpreted as the header row that defines the columns. If greater than 0, the first row is interpreted as a data row and this value is used as the number of columns.

format opt : CsvFormat = default(CsvFormat)

The CSV file format to use. If omitted, CsvFormat.Default will be used.

Creates a new instance of GeoPathReaderCsv.

Column names (see IGeoPathReader.ColumnName) are taken from the header row of the CSV file (see columns opt). If there is no header row, the column names are #1, #2, …​ #N.

IOException

If an I/O error has occurred.