Dataset.OpenLayerAt

Dataset.OpenLayerAt method

以读取模式打开指定索引处的图层。

public abstract VectorLayer OpenLayerAt(int index, DriverOptions options = null)
参数类型描述
索引Int32要打开的图层索引。
optionsDriverOptions打开选项。

返回值

已打开用于读取的图层。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该数据集不正确。
ArgumentOutOfRangeException索引超出范围
ArgumentExceptionOptions 对象的类型对该数据集不正确。
GisException读取图层中的要素时出错。
IOException发生 I/O 错误。

另见