Dataset.Create

Create(string, FileDriver)

创建一个数据集。

public static Dataset Create(string path, FileDriver driver)
参数类型描述
path字符串数据集的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException创建数据集时出错。
IOException发生了 I/O 错误。
NotSupportedException驱动程序无法打开数据集。
InvalidOperationException数据集已存在。

另见


Create(AbstractPath, FileDriver)

创建一个数据集。

public static Dataset Create(AbstractPath path, FileDriver driver)
参数类型描述
pathAbstractPath数据集的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException创建数据集时出错。
IOException发生了 I/O 错误。
NotSupportedException驱动程序无法打开数据集。
InvalidOperationException数据集已存在。

另见


Create(string, FileDriver, DriverOptions)

创建一个数据集。

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

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException创建数据集时出错。
IOException发生了 I/O 错误。
NotSupportedException驱动程序无法打开数据集。
InvalidOperationException数据集已存在。

另见


Create(AbstractPath, FileDriver, DriverOptions)

创建一个数据集。

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

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException创建数据集时出错。
IOException发生了 I/O 错误。
NotSupportedException驱动程序无法打开数据集。
InvalidOperationException数据集已存在。

另见