FileDriver.EditLayer

EditLayer(string, DriverOptions)

打开图层进行编辑。

public VectorLayer EditLayer(string path, DriverOptions options = null)
参数类型描述
pathString文件的路径。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException读取文件中的要素时出错。
IOException发生 I/O 错误。

另见


EditLayer(AbstractPath, DriverOptions)

打开图层进行编辑。

public virtual VectorLayer EditLayer(AbstractPath path, DriverOptions options = null)
参数类型描述
pathAbstractPath文件的路径。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException读取文件中的要素时出错。
NotSupportedException驱动程序无法编辑图层。
IOException发生 I/O 错误。

备注

驱动程序会创建一个包含所有要素的内部图层。但我们可以选择使用磁盘空间而不是 RAM。存在用于更优化资源使用的驱动程序(参见特定驱动程序文档)。此外,如果驱动程序能够创建和打开图层,它也可以编辑图层。

另见