Dataset.OpenLayerAt
Dataset.OpenLayerAt method
以读取模式打开指定索引处的图层。
public abstract VectorLayer OpenLayerAt(int index, DriverOptions options = null)
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | Int32 | 要打开的图层索引。 |
| options | DriverOptions | 打开选项。 |
返回值
已打开用于读取的图层。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该数据集不正确。 |
| ArgumentOutOfRangeException | 索引超出范围 |
| ArgumentException | Options 对象的类型对该数据集不正确。 |
| GisException | 读取图层中的要素时出错。 |
| IOException | 发生 I/O 错误。 |
另见
- class VectorLayer
- class DriverOptions
- class Dataset
- namespace Aspose.Gis
- assembly Aspose.GIS