VectorLayer.Open

Open(string, FileDriver)

Open the layer for reading.

public static VectorLayer Open(string path, FileDriver driver)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.

Return Value

A read-only layer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.

See Also


Open(AbstractPath, FileDriver)

Open the layer for reading.

public static VectorLayer Open(AbstractPath path, FileDriver driver)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.

Return Value

A read-only layer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.

See Also


Open(string, FileDriver, DriverOptions)

Open the layer for reading.

public static VectorLayer Open(string path, FileDriver driver, DriverOptions options)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.

Return Value

A read-only layer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.

See Also


Open(AbstractPath, FileDriver, DriverOptions)

Open the layer for reading.

public static VectorLayer Open(AbstractPath path, FileDriver driver, DriverOptions options)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.

Return Value

A read-only layer.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this driver.
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.

See Also