地理坐標系4326--投影坐標系3857/2436
空間參考坐標系查詢網址: https://spatialreference.org/和http://epsg.io/
EPSG:4326 (WGS84) 地理坐標系,WGS84 是目前最流行的地理坐標系統。在國際上,每個坐標系統都會被分配一個 EPSG 代碼,EPSG:4326 就是 WGS84 的代碼。GPS是基於WGS84的,所以通常我們得到的坐標數據都是WGS84的。一般存儲數據時,仍然按WGS84存儲。
EPSG:3857 (Pseudo-Mercator) 偽墨卡托投影,也被稱為球體墨卡托,Web Mercator。它是基於墨卡托投影的,把 WGS84坐標系投影到正方形上。
EPSG:2436 (北京范圍的投影坐標系) 北京的東西范圍:Beijing: 115.7°E - 117.4°E; 北京的投影坐標系:EPSG:2436; Beijing 1954 / 3-degree Gauss-Kruger CM 117E (Google it); WGS84 Bounds: 115.5000, 22.6600, 118.5000, 49.8800; Projected Bounds: 345818.6654, 2507707.7737, 654181.3346, 5528676.1748; Scope: Large scale topographic mapping, cadastral and engineering survey.; Last Revised: July 22, 2006; Area: China - 115.5°E to 118.5°E.
坐標系查詢地址:https://spatialreference.org/和http://epsg.io/
查詢與北京、中國有關的坐標系
select * from spatial_ref_sys where srtext ~* 'beijing';
select * from spatial_ref_sys where srtext ~* 'china';
SELECT ST_AsText(ST_Transform(ST_GeomFromText('POLYGON((743238 2967416,743238 2967450,743265 2967450,743265.625 2967416,743238 2967416))',2249),4326)) As wgs_geom;
SELECT ST_AsEWKT(ST_Transform(ST_GeomFromEWKT('SRID=2249;CIRCULARSTRING(743238 2967416 1,743238 2967450 2,743265 2967450 3,743265.625 2967416 3,743238 2967416 4)'),4326));