Open

VectorLayer.Open method (1 of 4)

Open the layer for reading.

public static VectorLayer Open(string path, FileDriver driver)
Parameter Type Description
path String Path to the file.
driver FileDriver Driver to use.

Return Value

A read-only layer.

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.

See Also


VectorLayer.Open method (2 of 4)

Open the layer for reading.

public static VectorLayer Open(AbstractPath path, FileDriver driver)
Parameter Type Description
path AbstractPath Path to the file.
driver FileDriver Driver to use.

Return Value

A read-only layer.

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.

See Also


VectorLayer.Open method (3 of 4)

Open the layer for reading.

public static VectorLayer Open(string path, FileDriver driver, DriverOptions options)
Parameter Type Description
path String Path to the file.
driver FileDriver Driver to use.
options DriverOptions Driver-specific options.

Return Value

A read-only layer.

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.

See Also


VectorLayer.Open method (4 of 4)

Open the layer for reading.

public static VectorLayer Open(AbstractPath path, FileDriver driver, DriverOptions options)
Parameter Type Description
path AbstractPath Path to the file.
driver FileDriver Driver to use.
options DriverOptions Driver-specific options.

Return Value

A read-only layer.

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.

See Also