Class: CsvPoint

nyc/ol/format/CsvPoint~ CsvPoint


new CsvPoint(options)

Create an instance of CsvPoint

Parameters:
Name Type Description
options module:nyc/ol/format/CsvPoint~CsvPoint.Options

Constructor options

Source:
See:

Extends

  • ol.format.Feature

Methods


detectCsvFormat(source)

Detect CSV columns and projection based on standard format

Parameters:
Name Type Description
source Object.<string, Object>

Parsed CSV data

Source:

getType()

Return format type

Source:
Returns:

The format type

Type
ol.format.FormatType

readFeature(source [, options])

Read a single feature from a source

Parameters:
Name Type Argument Description
source Object

A row from a CSV data source

options olx.format.ReadOptions <optional>

Read options

Source:
Returns:

Feature

Type
ol.Feature

readFeatures(source [, options])

Read all features from a source

Parameters:
Name Type Argument Description
source Object

Rows from a CSV data source

options olx.format.ReadOptions <optional>

Read options

Source:
Returns:

Features

Type
Array.<ol.Feature>

readProjection(source)

Read the projection from a source

Parameters:
Name Type Description
source Document | Node | Object | string

Source

Source:
Returns:

The projection

Type
ol.proj.Projection

Type Definitions


Options

Constructor options for module:nyc/ol/format/CsvPoint~CsvPoint

Type:
  • Object
Properties:
Name Type Argument Default Description
autoDetect boolean <optional>
false

Attempt to determine standard column names and projection

x string <optional>

The name of the field containing the x ordinate of the point

y string <optional>

The name of the field containing the y ordinate of the point

id string <optional>

The name of the field containing the unique id of the point

dataProjection ol.ProjectionLike <optional>
EPSG:4326

The projection of the source data

featureProjection ol.ProjectionLike <optional>
EPSG:3857

The projection of the resulting features

Source: