L_VecGetLayer

#include "lvkrn.h"

L_INT EXT_FUNCTION L_VecGetLayer(pVector, pLayer, pLayerDesc)

const pVECTORHANDLE pVector;

/* pointer to a vector handle */

const pVECTORLAYER pLayer;

/* pointer to a vector layer */

pVECTORLAYERDESC pLayerDesc;

/* pointer to a structure */

Gets layer information for the specified layer.

Parameter

Description

pVector

Pointer to the vector handle.

pLayer

Pointer to a VECTORLAYER structure that references the requested layer.

pLayerDesc

Pointer to a VECTORLAYERDESC structure to be updated with the layer information if the layer is found.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

When pLayerDesc is no longer needed, L_VecFreeLayer should be called to free any resources associated with the VECTORLAYERDESC structure.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecAddLayer, L_VecFreeLayer, L_VecGetLayerByIndex, L_VecGetLayerByName, L_VecGetLayerCount

Topics:

Working with Vector Layers

Example

For an example, refer to L_VecCopyLayer.