new CsvPoint(options)
Class to create point features from CSV data
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/ol/CsvPoint~CsvPoint.Options | Constructor options |
Extends
- ol.format.Feature
Methods
-
getLastExtent()
-
Get the extent from the source of the last readFeatures call
- Source:
Returns:
Tile extent
- Type
- ol.Extent
-
getType()
-
Return format type
- Source:
Returns:
- Type
- ol.format.FormatType
-
readFeature(source [, options])
-
Read a single feature from a source
Parameters:
Name Type Argument Description sourceObject A row from a CSV data source
optionsolx.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 sourceArray.<Object> Rows from a CSV data source
optionsolx.format.ReadOptions <optional>
Read options
- Source:
Returns:
Features
- Type
- Array.<ol.Feature>
-
readProjection(source)
-
Read the projection from a source
Parameters:
Name Type Description sourceDocument | Node | Object | string Source
- Source:
Returns:
Projection
- Type
- ol.proj.Projection
Type Definitions
-
Options
-
Constructor options for module:nyc/ol/CsvPoint~CsvPoint
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description xstring The name of the field containing the x ordinate of the point
ystring The name of the field containing the y ordinate of the point
idstring <optional>
The name of the field containing the unique id of the point
defaultDataProjectionol.ProjectionLike <optional>
EPSG:4326 The projection of the source data
defaultFeatureProjectionol.ProjectionLike <optional>
EPSG:3857 The projection of the resulting features