MapInfoTabDriver.CreateLayer

CreateLayer(string, MapInfoTabOptions)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(string path, MapInfoTabOptions options)
ParameterTypeDescription
pathStringPath to the file.
optionsMapInfoTabOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
InvalidOperationExceptionThe layer already exists.

See Also


CreateLayer(AbstractPath, MapInfoTabOptions)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(AbstractPath path, MapInfoTabOptions options)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsMapInfoTabOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
InvalidOperationExceptionThe layer already exists.

See Also


CreateLayer(AbstractPath, DriverOptions, SpatialReferenceSystem)

Creates a layer and opens it for adding new features.

public override VectorLayer CreateLayer(AbstractPath path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsDriverOptionsDriver-specific options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
InvalidOperationExceptionThe layer already exists.

See Also


CreateLayer(AbstractPath, MapInfoTabOptions, SpatialReferenceSystem)

Creates a layer and opens it for adding new features.

public VectorLayer CreateLayer(AbstractPath path, MapInfoTabOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsMapInfoTabOptionsDriver-specific options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
InvalidOperationExceptionThe layer already exists.
NotSupportedExceptionSpatial reference system is not supported by the driver.

See Also