SE_layerinfo_get_grid_sizes

Retrieves the spatial index grid sizes for a layer

Usage syntax

LONG SE_layerinfo_get_grid_sizes (const SE_LAYERINFO layer, LFLOAT *grid_size, LFLOAT *grid_size2, LFLOAT *grid_size3);

Parameters
layer The layerinfo handle
grid_size A pointer to the grid size of a layer
grid_size2 A pointer to the second level grid size
grid_size3 A pointer to the third level grid size of a layer
Description

SE_layerinfo_get_grid_sizes returns the spatial index grid sizes for a specific layer.

The type of spatial index that is used for a particular layer is dependent on the DBMS in which the layer is stored and the type of spatial column the layer contains. Refer to the table for the list of possible grid size settings that can be returned for your DBMS.

 

DBMS

Index Type

grid_size_1

grid_size_2

grid_size_3

DB2 Grid

<grid size 1>

[grid size 2]

[grid size 3]

Informix R-tree

-2.0

ignored

ignored

SQL Server (binary) Grid

<grid size 1>

[grid size 2]

[grid size 3]

SQL Server (Geometry or Geography) modified B-tree

-6.0

ignored

ignored

Oracle (binary) Grid

<grid size 1>

[grid size 2]

[grid size 3]

Oracle
(Oracle Spatial)
None

-1.0

ignored

ignored

Oracle
(Oracle Spatial)
R-tree

-2.0

ignored

ignored

PostgreSQL R-tree

-2.0

ignored

ignored

PostgreSQL None

-1.0

ignored

ignored

All Automatic 0.0 0.0

0.0

Returns

SE_SUCCESS
SE_SDE_NOT_STARTED

SE_NET_FAILURE

SE_INVALID_LAYERINFO_OBJECT

SE_INVALID_POINTER