FileDriver.OpenLayer

OpenLayer(string)

打开图层进行读取。

public VectorLayer OpenLayer(string path)
范围 类型 描述
path String 文件的路径。

返回值

的实例VectorLayer.

例外

例外 (健康)状况
ArgumentNullException 路径是null.
GisException 从文件中读取特征时出错。
IOException 发生 I/O 错误。
NotSupportedException 驱动程序无法打开矢量图层(请参阅CanOpenLayers).

也可以看看


OpenLayer(AbstractPath)

打开图层进行读取。

public VectorLayer OpenLayer(AbstractPath path)
范围 类型 描述
path AbstractPath 文件的路径。

返回值

的实例VectorLayer.

例外

例外 (健康)状况
ArgumentNullException 路径是null.
GisException 从文件中读取特征时出错。
IOException 发生 I/O 错误。
NotSupportedException 驱动程序无法打开矢量图层(请参阅CanOpenLayers).

也可以看看


OpenLayer(string, DriverOptions)

打开图层进行读取。

public VectorLayer OpenLayer(string path, DriverOptions options)
范围 类型 描述
path String 文件的路径。
options DriverOptions 特定于驱动程序的选项。

返回值

的实例VectorLayer.

例外

例外 (健康)状况
ArgumentException 此驱动程序的选项对象类型不正确。
ArgumentNullException 路径是null.
GisException 从文件中读取特征时出错。
IOException 发生 I/O 错误。
NotSupportedException 驱动程序无法打开矢量图层(请参阅CanOpenLayers).

也可以看看


OpenLayer(AbstractPath, DriverOptions)

打开图层进行读取。

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

返回值

的实例VectorLayer.

例外

例外 (健康)状况
ArgumentException 此驱动程序的选项对象类型不正确。
ArgumentNullException 路径是null.
GisException 从文件中读取特征时出错。
IOException 发生 I/O 错误。
NotSupportedException 驱动程序无法打开矢量图层(请参阅CanOpenLayers).

也可以看看