如何更改Carto中投影的中央子午线?

时间:2019-02-14 20:32:48

标签: map-projections cartodb cartography

在Carto中,可以使用ST_Tranform“投影”您的数据。参见https://carto.com/help/working-with-data/changing-map-projections/

与示例一样,我想使用Robinson。但是,我想更改中央子午线,以使地图更以太平洋为中心。

这是我在arcMap中将中央子午线调整为120时的样子: enter image description here

我认为我需要在帐户中添加一个新的空间参照系,但是我不确定如何设置参数。我是否只编辑了spatial_ref_system,并在所有与SRID相关的字段中为其赋予了新的(组成的)SRID,并设置了Central_Meridian参数?

由于鲁滨逊的SRID 54030,我可以只使用SRID = 54031和PARAMETER [“ Central_Meridian”,120]:

INSERT into spatial_ref_sys (
srid, auth_name, auth_srid, proj4text, srtext) 
values ( 54031, 'CUSTOM', 54031, '+proj=robin 
+lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs ',
PROJCS["World_Robinson",GEOGCS["GCS_WGS_1984",
DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
PROJECTION["Robinson"],PARAMETER["False_Easting",0],
PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",120],
UNIT["Meter",1],AUTHORITY["EPSG","54031"]]'
);

执行此操作,然后将其应用于图层时,我得到的是常规Robinson,不会移位。像这样: enter image description here

0 个答案:

没有答案