FileDriver.EditLayer

EditLayer(string, DriverOptions)

Opens a layer for editing.

public VectorLayer EditLayer(string path, DriverOptions options = null)
ParameterTypeDescription
pathStringPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.

See Also


EditLayer(AbstractPath, DriverOptions)

Opens a layer for editing.

public virtual VectorLayer EditLayer(AbstractPath path, DriverOptions options = null)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
NotSupportedExceptionDriver can not edit layers.
IOExceptionAn I/O error occurred.

Remarks

The driver creates an inner layer with all the features. But we have the option to use disk space instead RAM. There are drivers for more optimal use of resources (see the specific driver documentation). Also the driver can edit a layer If it can create and open the layers.

See Also