Gets the layer at the specified index in the specified vector handle.
#include "ltvkrn.h"
L_LVKRN_API L_INT L_VecGetLayerByIndex(pVector, nIndex, pLayer)
Pointer to the vector handle.
Index of the requested layer. This index is zero-based. Possible values are between 0 and L_VecGetLayerCount - 1.
Pointer to a VECTORLAYER structure to be updated with the layer handle, if the layer is found.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To determine the number of layers in a vector handle, call L_VecGetLayerCount.
To get a layer, given the name of the layer, use L_VecGetLayerByName.
To get layer information for a specific layer, call L_VecGetLayer.
For an example, refer to L_VecGetLayerCount.