Dataset.OpenLayer

Dataset.OpenLayer method

Opens the layer with specified name for reading.

public abstract VectorLayer OpenLayer(string name, DriverOptions options = null)
ParameterTypeDescription
nameStringName of the layer to open.
optionsDriverOptionsOpen options.

Return Value

The layer opened for reading.

Exceptions

exceptioncondition
ArgumentExceptionLayer with specified name does not exist; Options object has an incorrect type for this dataset.
ArgumentExceptionOptions object has an incorrect type for this dataset.
ArgumentNullExceptionThe name is null.
GisExceptionError reading the feature from the layer.
IOExceptionAn I/O error occurred.

See Also