OpenLayer

FileDriver.OpenLayer method (1 of 4)

Opens the layer for reading.

public VectorLayer OpenLayer(string path)
Parameter Type Description
path String Path to the file.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
IOException An I/O error occurred.
NotSupportedException Driver can not open vector layers (see CanOpenLayers).

See Also


FileDriver.OpenLayer method (2 of 4)

Opens the layer for reading.

public VectorLayer OpenLayer(AbstractPath path)
Parameter Type Description
path AbstractPath Path to the file.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
IOException An I/O error occurred.
NotSupportedException Driver can not open vector layers (see CanOpenLayers).

See Also


FileDriver.OpenLayer method (3 of 4)

Opens the layer for reading.

public VectorLayer OpenLayer(string path, DriverOptions options)
Parameter Type Description
path String Path to the file.
options DriverOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentException Options object has an incorrect type for this driver.
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
IOException An I/O error occurred.
NotSupportedException Driver can not open vector layers (see CanOpenLayers).

See Also


FileDriver.OpenLayer method (4 of 4)

Opens the layer for reading.

public abstract VectorLayer OpenLayer(AbstractPath path, DriverOptions options)
Parameter Type Description
path AbstractPath Path to the file.
options DriverOptions Driver-specific options.

Return Value

An instance of VectorLayer.

Exceptions

exception condition
ArgumentException Options object has an incorrect type for this driver.
ArgumentNullException The path is null.
GisException Error reading the feature from the file.
IOException An I/O error occurred.
NotSupportedException Driver can not open vector layers (see CanOpenLayers).

See Also