Dataset.OpenLayerAt

Dataset.OpenLayerAt method

Opens the layer at specified index for reading.

public abstract VectorLayer OpenLayerAt(int index, DriverOptions options = null)
ParameterTypeDescription
indexInt32Index of the layer to open.
optionsDriverOptionsOpen options.

Return Value

The layer opened for reading.

Exceptions

exceptioncondition
ArgumentExceptionOptions object has an incorrect type for this dataset.
ArgumentOutOfRangeExceptionIndex is out of range
ArgumentExceptionOptions object has an incorrect type for this dataset.
GisExceptionError reading the feature from the layer.
IOExceptionAn I/O error occurred.

See Also