CreateLayer

CsvDriver.CreateLayer method (1 of 4)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(string path, CsvOptions options)
Parameter Type Description
path String Path to the file.
options CsvOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
InvalidOperationException The layer already exists.

See Also


CsvDriver.CreateLayer method (2 of 4)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(AbstractPath path, CsvOptions options)
Parameter Type Description
path AbstractPath Path to the file.
options CsvOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
InvalidOperationException The layer already exists.

See Also


CsvDriver.CreateLayer method (3 of 4)

Creates a layer and opens it for adding new features.

public override VectorLayer CreateLayer(AbstractPath path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
Parameter Type Description
path AbstractPath Path to the file.
options DriverOptions Driver-specific options.
spatialReferenceSystem SpatialReferenceSystem Spatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
InvalidOperationException The layer already exists.

See Also


CsvDriver.CreateLayer method (4 of 4)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(AbstractPath path, CsvOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
Parameter Type Description
path AbstractPath Path to the file.
options CsvOptions Driver-specific options.
spatialReferenceSystem SpatialReferenceSystem Spatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
InvalidOperationException The layer already exists.
NotSupportedException Spatial reference system is not supported by the driver.

See Also