What is the area in a LEVEL_4 cell in a geography spatial index in SQL Server?
我有一个空间索引,使用 SQL Server 中的地理数据类型定义如下。
1 2 3 4 5 6 7 8 | CREATE SPATIAL INDEX [IX_CI_Geocode] ON [dbo].[CustomerInformation] ( [Geocode] )USING GEOGRAPHY_GRID WITH ( GRIDS =(LEVEL_1 = HIGH,LEVEL_2 = HIGH,LEVEL_3 = HIGH,LEVEL_4 = HIGH), CELLS_PER_OBJECT = 128, PAD_INDEX = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO |
最深的单元格下方的面积是多少?基本上,在 Level_4,单元格的宽度和高度是多少英尺或米?
例如,Level_1 小区将覆盖美国的一半。 2 级细胞被分解成更小的细胞。最终单元格的大小是多少?
我刚刚想通了。使用以下查询指向表上的空间索引。
声明@qs 地理;
SET @qs =geography::Point(39.1877151742333, -90.3541887940784, 4326).STBuffer(5000);
exec sp_help_spatial_geography_index 'TableName', 'IndexName', 1, @qs;
查看"Area_Of_Cell_In_LevelX"行,了解 4 个级别中每个级别的单元格的面积。