SE_stream_calculate_layer_statistics

Returns statistics for a layer

Usage syntax

LONG SE_stream_calculate_layer_statistics
(SE_STREAM stream,
const SE_QUERYINFO query_info,
SE_LAYER_STATS *stats);

Parameters
stream The stream handle
query_info A pointer to an SE_QUERYINFO structure
stats A pointer to SE_LAYER_STATS structure
Description

SE_stream_calculate_layer_statistics returns a set of statistics for a layer. You must have query access to the layer. This function reads the entire feature table and can be very expensive on a large layer. The query info object should contain the layer’s spatial column and the layer’s table name as construct’s first table.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_INVALID_ENVELOPE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_QUERYINFO_OBJECT

SE_INVALID_SQL

SE_INVALID_STREAM_TYPE

SE_INVALID_WHERE

SE_LAYER_MISMATCH

SE_LOAD_ONLY_LAYER

SE_LAYER_NOEXIST

SE_MULTIPLE_SPATIAL_COLS

SE_NET_FAILURE

SE_NO_ACCESS

SE_NO_PERMISSIONS

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED

SE_STREAM_IN_PROGRESS

SE_TABLE_NOEXIST