Dataset.OpenLayerAt

Dataset.OpenLayerAt method

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

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

返回值

已打开用于读取的图层。

异常

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

另见