名称

postgis_srs — 返回所请求的权限和 srid 的元数据记录。

大纲

setof record postgis_srs(text auth_name, text auth_srid);

描述

返回给定 auth_name 所请求的 auth_srid 的元数据记录。 该记录将包含 auth_nameauth_sridsrnamesrtextproj4text 以及使用区域的角点 point_sw point_ne

可用性:3.4.0

Proj version 6+

示例

获取 EPSG 的元数据:3005。

Code
SELECT auth_name, auth_srid, srname,point_sw AS point_sw,point_ne AS point_ne
FROM postgis_srs('EPSG', '3005');
栅格输出
-[ RECORD 1 ]-------------------
auth_name | EPSG
auth_srid | 3005
srname    | NAD83 / BC Albers
point_sw  | POINT(-139.04 48.25)
point_ne  | POINT(-114.08 60.01)