Gets the layer with the specified name, in the specified vector handle.
#include "ltvkrn.h"
L_LVKRN_API L_INT L_VecGetLayerByName(pVector, pszName, pLayer)
Pointer to the vector handle.
Character string that contains the name of the layer to get.
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. |
If two or more layers in a vector handle have the same name, this function will get the first layer found.
For an example, refer to L_VecDeleteLayer.