VectorLayer.Open

Open(string, FileDriver)

打开图层进行读取。

public static VectorLayer Open(string path, FileDriver driver)
参数类型描述
path字符串文件的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

只读图层。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException从文件读取要素时出错。
IOException发生了 I/O 错误。

另见


Open(AbstractPath, FileDriver)

打开图层进行读取。

public static VectorLayer Open(AbstractPath path, FileDriver driver)
参数类型描述
pathAbstractPath文件的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

只读图层。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException从文件读取要素时出错。
IOException发生了 I/O 错误。

另见


Open(string, FileDriver, DriverOptions)

打开图层进行读取。

public static VectorLayer Open(string path, FileDriver driver, DriverOptions options)
参数类型描述
path字符串文件的路径。
驱动程序FileDriver要使用的驱动程序。
optionsDriverOptions驱动程序特定的选项。

返回值

只读图层。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException从文件读取要素时出错。
IOException发生了 I/O 错误。

另见


Open(AbstractPath, FileDriver, DriverOptions)

打开图层进行读取。

public static VectorLayer Open(AbstractPath path, FileDriver driver, DriverOptions options)
参数类型描述
pathAbstractPath文件的路径。
驱动程序FileDriver要使用的驱动程序。
optionsDriverOptions驱动程序特定的选项。

返回值

只读图层。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException从文件读取要素时出错。
IOException发生了 I/O 错误。

另见