FileDriver.OpenLayer

OpenLayer(string)

打开该图层进行读取。

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

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException读取文件中的要素时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法打开矢量图层(参见 CanOpenLayers)。

另见


OpenLayer(AbstractPath)

打开该图层进行读取。

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

返回值

一个 VectorLayer 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException读取文件中的要素时出错。
IOException发生 I/O 错误。
NotSupportedException驱动程序无法打开矢量图层(参见 CanOpenLayers)。

另见


OpenLayer(string, DriverOptions)

打开该图层进行读取。

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

返回值

一个 VectorLayer 实例。

异常

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

另见


OpenLayer(AbstractPath, DriverOptions)

打开该图层进行读取。

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

返回值

一个 VectorLayer 实例。

异常

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

另见