SE_shape_as_WKB

Returns the well-known binary representation of a shape

Usage syntax

LONG SE_shape_as_WKB (const SE_SHAPE shape, LONG  alloc_size, LONG *binary_size, CHAR *WKB_type);

Parameters
shape A handle to an active shape object
alloc_size The amount of memory to allocate in bytes
*binary_size The actual length in bytes
*WKB_type A pointer to the shape in the well-known binary representation
Description

Returns the well-known binary representation of a shape.

Returns

SE_SUCCESS
SE_BINARY_TOO_SMALL

SE_INVALID_ENTITY_TYPE

SE_INVALID_POINTER

SE_INVALID_SHAPE_OBJECT

SE_OUT_OF_CLMEM

SE_SDE_NOT_STARTED

Notes

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