FileGdbDriver.CreateLayer

CreateLayer(string, FileGdbOptions)

Creates a layer and opens it for adding new features.

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

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
InvalidOperationExceptionThe layer already exists.

See Also


CreateLayer(string, FileGdbOptions, SpatialReferenceSystem)

Creates a layer and opens it for appending.

public VectorLayer CreateLayer(string path, FileGdbOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathStringPath to the file.
optionsFileGdbOptionsDriver-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


CreateLayer(AbstractPath, DriverOptions, SpatialReferenceSystem)

Creates a layer and opens it for appending.

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.
NotSupportedExceptionSpatial reference system is not supported by the driver.

See Also


CreateLayer(AbstractPath, FileGdbOptions, SpatialReferenceSystem)

Creates a layer and opens it for appending.

public VectorLayer CreateLayer(AbstractPath path, FileGdbOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsFileGdbOptionsDriver-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