FileDriver.OpenLayer

OpenLayer(string)

Opens the layer for reading.

public VectorLayer OpenLayer(string path)
ParameterTypeDescription
pathStringPath to the file.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open vector layers (see CanOpenLayers).

See Also


OpenLayer(AbstractPath)

Opens the layer for reading.

public VectorLayer OpenLayer(AbstractPath path)
ParameterTypeDescription
pathAbstractPathPath to the file.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading the feature from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not open vector layers (see CanOpenLayers).

See Also


OpenLayer(string, DriverOptions)

Opens the layer for reading.

public VectorLayer OpenLayer(string path, DriverOptions options)
ParameterTypeDescription
pathStringPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

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.
NotSupportedExceptionDriver can not open vector layers (see CanOpenLayers).

See Also


OpenLayer(AbstractPath, DriverOptions)

Opens the layer for reading.

public abstract VectorLayer OpenLayer(AbstractPath path, DriverOptions options)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

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.
NotSupportedExceptionDriver can not open vector layers (see CanOpenLayers).

See Also