FileDriver.CreateLayer

CreateLayer(string)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(string path)
参数类型描述
pathString文件的路径。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见


CreateLayer(AbstractPath)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(AbstractPath path)
参数类型描述
pathAbstractPath文件的路径。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见


CreateLayer(string, DriverOptions)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(string path, DriverOptions options)
参数类型描述
pathString文件的路径。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见


CreateLayer(AbstractPath, DriverOptions)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(AbstractPath path, DriverOptions options)
参数类型描述
pathAbstractPath文件的路径。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见


CreateLayer(string, SpatialReferenceSystem)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(string path, SpatialReferenceSystem spatialReferenceSystem)
参数类型描述
pathString文件的路径。
spatialReferenceSystemSpatialReferenceSystem空间参考系统。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。

另见


CreateLayer(AbstractPath, SpatialReferenceSystem)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(AbstractPath path, SpatialReferenceSystem spatialReferenceSystem)
参数类型描述
pathAbstractPath文件的路径。
spatialReferenceSystemSpatialReferenceSystem空间参考系统。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。

另见


CreateLayer(string, DriverOptions, SpatialReferenceSystem)

创建图层并以追加方式打开它。

public VectorLayer CreateLayer(string path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
参数类型描述
pathString文件的路径。
optionsDriverOptions驱动程序特定的选项。
spatialReferenceSystemSpatialReferenceSystem空间参考系统。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见


CreateLayer(AbstractPath, DriverOptions, SpatialReferenceSystem)

创建图层并以追加方式打开它。

public abstract VectorLayer CreateLayer(AbstractPath path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
参数类型描述
pathAbstractPath文件的路径。
optionsDriverOptions驱动程序特定的选项。
spatialReferenceSystemSpatialReferenceSystem空间参考系统。

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
GisException写入要素到文件时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。
NotSupportedException驱动程序无法创建矢量图层(参见 CanCreateLayers)。

另见