Define a SQL Azure Table Spatial Index
A spatial index is an index on a table based on spatial data in the table (a spatial column). Spatial data uses the new data types, GEOMETRY and GEOGRAPHY. Different tessellation schemes are used depending on the data type of the spatial column; a spatial column assigned the GEOMETRY data type uses the GEOMETRY_GRID tessellation scheme, while a spatial column assigned the GEOGRAPHIC data type uses the GEOGRAPHY_GRID tessellation scheme.
The table spatial index options provide a way to define how the index behaves.
Tessellation options let you specify the density of the grid at each level of a tessellation scheme and define the number of tessellation cells per object that you can use for a single spatial index object during the tessellation process. There are four levels for which you can specify density, and there are three density values you can select:
Specifies to use the lowest density for the grid. Low equals 16 cells, or a 4x4 grid.
Specifies to use the medium density for the grid at the given level. Medium equals 64 cells, or an 8x8 grid.
Specifies to use the highest possible density for the grid at the given level. High equals 256 cells, or a 16x16 grid.
Boundary box options are used to set the four coordinates of the bounding box when GEOMETRY_GRID is your tessellation scheme.
Use the SQL Azure Table Spatial Index Editor in a SQL Azure physical model to define general options, tessellation options, and boundary box options for an index on a table that contains spatial columns. You can specify more than one spatial index on a spatial column.
To define a SQL Azure table spatial index
The SQL Azure Table Spatial Index Editor opens.
Note: Click New on the toolbar to create a new table spatial index. Use the Enter filter text box to filter a very large list of indexes to quickly locate the index that you want to define.
Specifies the name of the table spatial index. You can change the name of the table spatial index in this field.
Note: Table spatial index names must be unique within the table but do not have to be unique within the database.
Specifies the spatial column upon which the table spatial index is based.
Displays the data type (and therefore the tessellation scheme) of the spatial column. You do not explicitly define the data type here; the data type of the spatial column is defined in the SQL Azure Column Editor.
Note: A spatial column assigned the GEOMETRY data type uses the GEOMETRY_GRID tessellation scheme, while a spatial column assigned the GEOGRAPHIC data type uses the GEOGRAPHY_GRID tessellation scheme.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Specifies whether distribution statistics are recomputed. Select the option from the drop-down.
Specifies whether a named preexisting table spatial index is dropped and rebuilt. Select the option using the check box.
Lets you specify the density of the first (top) level grid. Select either Low, Medium, or High for the density level from the drop-down.
Lets you specify the density of the second level grid. Select either Low, Medium, or High for the density level from the drop-down.
Lets you specify the density of the third level grid. Select either Low, Medium, or High for the density level from the drop-down.
Lets you specify the density of the fourth level grid. Select either Low, Medium, or High for the density level from the drop-down.
Note: Low density equals 16 cells (4x4 grid), Medium density equals 64 cells (8x8 grid), and High density equals 256 cells (16x16 grid).
Specifies the number of tessellation cells per object that can be used for a single spatial object in the index by the tessellation process. Enter a numerical value.
Note: Boundary Box options are only available if the spatial column upon which your index is based is Geometric.
Lets you specify the value for the x-coordinate of the lower-left corner of the bounding box. Enter a numerical value.
Lets you specify the value for the y-coordinate of the lower-left corner of the bounding box. Enter a numerical value.
Lets you specify the value for the x-coordinate of the upper-right corner of the bounding box. Enter a numerical value.
Lets you specify the value for the y-coordinate of upper-right corner of the bounding box. Enter a numerical value.
The table spatial index is defined and the SQL Azure Table Spatial Index Editor closes.
Copyright © 2013 CA.
All rights reserved.
|
|