繁体   English   中英

在 openlayers 中注册投影

[英]Registering projection in openlayers

我正在尝试将投影“EPSG:6875”添加到我的 openlayers,但我不知道这些参数是如何工作的。 有人能解释一下我该怎么做吗? 我以这段代码为例:

proj4.defs('EPSG:21781',
  '+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 ' +
  '+x_0=600000 +y_0=200000 +ellps=bessel ' +
  '+towgs84=660.077,13.551,369.344,2.484,1.783,2.939,5.66 +units=m +no_defs');
register(proj4);
const swissProjection = getProjection('EPSG:21781');

我想对“EPSG:6875”做同样的事情

您可以使用: https://epsg.io/6875

epsg.io 上,您有任何示例和需要的详细信息。

对于EPSG:6875你需要这样的东西:

proj4.defs("EPSG:6875","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9985 +x_0=7000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs");
register(proj4);
const italyProjection = getProjection('EPSG:6875');

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM