L_VecGetLayerByIndex

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecGetLayerByIndex(pVector, nIndex, pLayer)

const pVECTORHANDLE pVector;

Pointer to the vector handle

L_INT nIndex;

Index

pVECTORLAYER pLayer;

pointer to a vector layer

Gets the layer at the specified index in the specified vector handle.

Parameter

Description

pVector

Pointer to the vector handle.

nIndex

Index of the requested layer. This index is zero-based. Possible values are between 0 and L_VecGetLayerCount - 1.

pLayer

Pointer to a VECTORLAYER structure to be updated with the layer handle, if the layer is found.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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.

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_VecGetLayerCount, L_VecGetLayerByName, L_VecGetLayer.

Topics:

Working with Vector Layers

Example

For an example, refer to L_VecGetLayerCount.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C API Help