FileDriver.OpenDataset

OpenDataset(string)

Opens the dataset.

public Dataset OpenDataset(string path)
ParameterTypeDescription
pathStringPath to the dataset.

Return Value

An instance of Dataset.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading the dataset.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open datasets (see CanOpenDatasets).

See Also


OpenDataset(AbstractPath)

Opens the dataset.

public Dataset OpenDataset(AbstractPath path)
ParameterTypeDescription
pathAbstractPathPath to the dataset.

Return Value

An instance of Dataset.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading the dataset.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open datasets (see CanOpenDatasets).

See Also


OpenDataset(string, DriverOptions)

Opens the dataset.

public Dataset OpenDataset(string path, DriverOptions options)
ParameterTypeDescription
pathStringPath to the dataset.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of Dataset.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the dataset.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open datasets (see CanOpenDatasets).

See Also


OpenDataset(AbstractPath, DriverOptions)

Opens the dataset.

public virtual Dataset OpenDataset(AbstractPath path, DriverOptions options)
ParameterTypeDescription
pathAbstractPathPath to the dataset.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of Dataset.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the dataset.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open datasets (see CanOpenDatasets).

See Also