SE_shape_generate_point

Generates a point shape from an array of points.

Usage syntax

LONG SE_shape_generate_point (LONG num_pts, SE_POINT *point_array, LFLOAT *z, LFLOAT *measure, SE_SHAPE tgt_shape);

Parameters
num_pts The number of points to generate the point shape from
point_array The array of x,y coordinates
z The array of z-coordinates, if needed
measure A pointer to the measures, if needed
tgt_shape A handle to an active shape object, returned as the new point shape
Description

Generates a point shape from an array of points. If the z or measure array values are null, the resulting shape won’t contain elevations or measures.

typedef struct {
LFLOAT x;
LFLOAT y;
} SE_POINT;

Returns

SE_SUCCESS
SE_COORD_OUT_OF_BOUNDS

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_SHAPE

SE_INVALID_SHAPE_OBJECT

SE_OUT_OF_CLMEM

Notes

•  Ignores any CAD data in the source shape, and removes any CAD data in the target shape.