Dataset.EditLayer

Dataset.EditLayer method

Opens the layer with specified name for editing.

public abstract VectorLayer EditLayer(string name, DriverOptions options = null, 
    SpatialReferenceSystem spatialReferenceSystem = null)
ParameterTypeDescription
nameStringName of the layer to edit.
optionsDriverOptionsOpen options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system for new geometries.

Return Value

The layer opened for editing.

Exceptions

exceptioncondition
ArgumentExceptionLayer with specified name does not exist; Options object has an incorrect type for this dataset.
ArgumentExceptionOptions object has an incorrect type for this dataset.
ArgumentNullExceptionThe name is null.
GisExceptionError reading the feature from the layer.
IOExceptionAn I/O error occurred.

See Also