简体   繁体   English

SQL 数据库中的表 dbo.geometry.columns 和 dbo.spatial_ref_sys 是做什么用的?

[英]What are the tables dbo.geometry.columns and dbo.spatial_ref_sys in the SQL database for?

I discovered the new tables dbo.geometry_columns and dbo.spatial_ref_sys in my SQL database (see image).我在我的 SQL 数据库中发现了新表dbo.geometry_columnsdbo.spatial_ref_sys (见图)。 It looks like they have been automatically created as I did not do it on purpose.看起来它们是自动创建的,因为我不是故意的。 I assume that it is caused by me having created some columns of type geometry in some tables and views.我假设这是由于我在某些表和视图中创建了一些geometry类型的列引起的。 Are these automatically created tables which are mandatory for operation with columns of type geometry ?这些自动创建的表是否必须使用geometry类型的列进行操作?

I am using "Microsoft SQL Server 2017" with "SQL Server Management Studio v18.4" on "Windows Server 2012 R2 Standard 6.3".我在“Windows Server 2012 R2 Standard 6.3”上使用“Microsoft SQL Server 2017”和“SQL Server Management Studio v18.4”。

在此处输入图像描述

From https://alastaira.wordpress.com/ogr2ogr-patterns-for-sql-server/来自https://alastaira.wordpress.com/ogr2ogr-patterns-for-sql-server/

"After importing any data, OGR2OGR will create two additional tables in your SQL Server database – spatial_ref_sys and geometry_columns, which store metadata about the spatial columns in the tables. These tables can be safely ignored (or deleted) – OGR2OGR will recreate them after each conversion anyway" “导入任何数据后,OGR2OGR 将在您的 SQL 服务器数据库中创建两个额外的表 – spatial_ref_sys 和 geometry_columns,它们存储有关表中空间列的元数据。可以安全地忽略(或删除)这些表 – OGR2OGR 将在每次之后重新创建它们无论如何转换“

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM