Dataset.EditLayerAt

Dataset.EditLayerAt method

以编辑模式打开具有指定名称的图层。

public abstract VectorLayer EditLayerAt(int index, DriverOptions options = null, 
    SpatialReferenceSystem spatialReferenceSystem = null)
参数类型描述
索引Int32要编辑的图层索引。
optionsDriverOptions打开选项。
spatialReferenceSystemSpatialReferenceSystem新几何体的空间参考系统。

返回值

已打开用于编辑的图层。

异常

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

另见