Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.5 KB

spatial-reference-identifiers-srids.md

File metadata and controls

35 lines (27 loc) · 2.5 KB
title description author ms.author ms.reviewer ms.date ms.service ms.topic ms.custom helpviewer_keywords monikerRange
Spatial Reference Identifiers (SRIDs)
Spatial Reference Identifiers (SRIDs) correspond to a spatial reference system based on the specific ellipsoid used for either flat-earth mapping or round-earth mapping in SQL Database Engine spatial data.
WilliamDAssafMSFT
wiassaf
mlandzic, jovanpop
11/04/2024
sql
conceptual
ignite-2024
Spatial Reference Identifiers (SRIDs)
geodetic spatial data [SQL Server], identifiers
SRID
=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric

Spatial Reference Identifiers (SRIDs)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance Fabric SQL endpoint Fabric DW FabricSQLDB]

Each spatial instance has a spatial reference identifier (SRID). The SRID corresponds to a spatial reference system based on the specific ellipsoid used for either flat-earth mapping or round-earth mapping in SQL Database Engine spatial data.

A spatial column can contain objects with different SRIDs. However, only spatial instances with the same SRID can be used when performing operations with [!INCLUDE ssNoVersion] spatial data methods on your data. The result of any spatial method derived from two spatial data instances is valid only if those instances have the same SRID that is based on the same unit of measurement, datum, and projection used to determine the coordinates of the instances. The most common units of measurement of a SRID are meters or square meters.

If two spatial instances do not have the same SRID, the results from a geometry or geography Data Type method used on the instances will return NULL. For example, for the following predicate term to return a non-NULL result, the two geometry instances, geometry1 and geometry2, must have the same SRID:

geometry1.STIntersects(geometry2) = 1

Note

The spatial reference identification system is defined by the European Petroleum Survey Group (EPSG) standard, which is a set of standards developed for cartography, surveying, and geodetic data storage. This standard is owned by the Oil and Gas Producers (OGP) Surveying and Positioning Committee.

Related content