Dataset.CreateLayer

CreateLayer()

创建一个新的矢量图层并以追加模式打开它。

public virtual VectorLayer CreateLayer()

返回值

已打开用于写入的 VectorLayer

另见


CreateLayer(SpatialReferenceSystem)

创建一个新的矢量图层并以追加模式打开它。

public virtual VectorLayer CreateLayer(SpatialReferenceSystem spatialReferenceSystem)
参数类型描述
spatialReferenceSystemSpatialReferenceSystem新图层的空间参考系统。

返回值

已打开用于写入的 VectorLayer

另见


CreateLayer(DriverOptions, SpatialReferenceSystem)

创建一个新的矢量图层并以追加模式打开它。

public virtual VectorLayer CreateLayer(DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem = null)
参数类型描述
optionsDriverOptions打开选项。
spatialReferenceSystemSpatialReferenceSystem新图层的空间参考系统。

返回值

已打开用于写入的 VectorLayer

异常

异常条件
NotSupportedException此数据集不支持创建图层。
IOException发生 I/O 错误。
GisException创建图层时出错。

另见


CreateLayer(string, SpatialReferenceSystem)

创建一个具有指定名称的新矢量图层并以追加模式打开它。

public virtual VectorLayer CreateLayer(string name, 
    SpatialReferenceSystem spatialReferenceSystem = null)
参数类型描述
名称String图层名称。
spatialReferenceSystemSpatialReferenceSystem新图层的空间参考系统。

返回值

已打开用于写入的 VectorLayer

异常

异常条件
NotSupportedException此数据集不支持创建图层。
IOException发生 I/O 错误。
GisException创建图层时出错。

另见


CreateLayer(string, DriverOptions, SpatialReferenceSystem)

创建一个具有指定名称的新矢量图层并以追加模式打开它。

public virtual VectorLayer CreateLayer(string name, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem = null)
参数类型描述
名称String图层名称。
optionsDriverOptions打开选项。
spatialReferenceSystemSpatialReferenceSystem新图层的空间参考系统。

返回值

已打开用于写入的 VectorLayer

异常

异常条件
NotSupportedException此数据集不支持创建图层。
IOException发生 I/O 错误。
GisException创建图层时出错。

另见