SE_log_calculate_extent |
Gets the extent of all features referenced in a log file
LONG SE_log_calculate_extent (SE_CONNECTION connection, const CHAR *logname, SE_ENVELOPE *e, LFLOAT *minz, LFLOAT *maxz, const SE_SQL_CONSTRUCT *construct);
connection | The connection handle |
logname | The log file name; can be a user name filename. |
e | The address of the SE_ENVELOPE structure that will receive the common envelope |
minz | The address of an LFLOAT that will receive the minimum z-value of the common envelope |
maxz | The address of an LFLOAT that will receive the maximum z-value of the common envelope |
construct | A pointer to an SE_SQL_CONSTRUCT structure containing a WHERE clause |
SE_log_calculate_extent retrieves the extent of all features in the specified log file. The log file must be based on a layer. Optionally, an SQL where clause may further refine the features. If no features meet the criteria, EMPTY_ENVELOPE is returned.
The SE_SQL_CONSTRUCT structure has the following definition:
typedef struct {
LONG num_tables; /* Number of tables */
CHAR **tables; /* Table names */
CHAR *where; /* Where clause */
} SE_SQL_CONSTRUCT;
SE_SUCCESS
SE_DB_IO_ERROR
SE_ROW_NOEXIST
SE_INVALID_PARAM_VALUE
SE_INVALID_POINTER
SE_INVALID_SQL
SE_LAYER_NOEXIST
SE_NET_FAILURE
SE_SDE_NOT_STARTED