Name

ST_SRID — 返回几何图形的空间参考标识符。

Synopsis

integer ST_SRID(geometry g1);

描述

返回在SPATIAL_REF_SYS表中定义的ST_Geometry的空间参考标识符。 Section 4.5, “空间参考系”

[Note]

Space_ref_sys表是一个表,它编目了PostGIS已知的所有空间参考系统,并用于从一个空间参考系统到另一个空间参考系统的转换。因此,如果您计划转换几何图形,验证您拥有正确的空间参考系统标识符是很重要的。

This method implements the OGC Simple Features Implementation Specification for SQL 1.1. s2.1.1.1

This method implements the SQL/MM specification. SQL-MM 3:5.1.5

This method supports Circular Strings and Curves

示例

SELECT ST_SRID(ST_GeomFromText('POINT(-71.1043 42.315)',4326));
                --result
                4326
                

另请参阅

Section 4.5, “空间参考系”, ST_SetSRID, ST_Transform