Dataset.Create

Create(string, FileDriver)

创建一个数据集。

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

返回值

Dataset 的实例。

异常

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

另见


Create(AbstractPath, FileDriver)

创建一个数据集。

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

返回值

Dataset 的实例。

异常

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

另见


Create(string, FileDriver, DriverOptions)

创建一个数据集。

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

返回值

Dataset 的实例。

异常

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

另见