关于 tsql:SQL Server 地理空间索引中 LEVEL_4 单元格的面积是多少? | 珊瑚贝

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 个级别中每个级别的单元格的面积。


来源:https://www.codenong.com/6946004/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8806.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?