EditLayer

FileDriver.EditLayer method (1 of 2)

Opens a layer for editing.

public VectorLayer EditLayer(string path, DriverOptions options = null)
Parameter Type Description
path String Path to the file.
options DriverOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentException Options object has an incorrect type for this driver.
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
IOException An I/O error occurred.

See Also


FileDriver.EditLayer method (2 of 2)

Opens a layer for editing.

public virtual VectorLayer EditLayer(AbstractPath path, DriverOptions options = null)
Parameter Type Description
path AbstractPath Path to the file.
options DriverOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentException Options object has an incorrect type for this driver.
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
NotSupportedException Driver can not edit layers.
IOException An 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