Dataset.OpenLayer

Dataset.OpenLayer method

以读取模式打开具有指定名称的图层。

public abstract VectorLayer OpenLayer(string name, DriverOptions options = null)
参数类型描述
名称字符串要打开的图层名称。
optionsDriverOptions打开选项。

返回值

已打开用于读取的图层。

异常

异常条件
ArgumentException具有指定名称的图层不存在;Options 对象对该 Dataset 的类型不正确。
ArgumentExceptionOptions 对象对该 Dataset 的类型不正确。
ArgumentNullException名称为 null
GisException读取图层要素时出错。
IOException发生了 I/O 错误。

另见