proj4.js如何将UTM转换为EOV坐标?

时间:2018-11-04 12:44:19

标签: utm proj4js

我使用JavaScript通过以下代码将UTM转换为WSG84 lon lat,其中utm_zone包含UTM区域号。

var utm = "+proj=utm +zone=";
utm = utm + "" + utm_zone;
var wgs84 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
var lonlatArray = proj4(utm, wgs84, [utm_x, utm_y]);

但是如何设置参数以将UTM格式直接转换为EOV(epsg:23700)?

1 个答案:

答案 0 :(得分:1)

使用https://epsg.io/23700中EOV / EPSG:23700的定义。

示例:

var utm = "+proj=utm +zone=34T";
var epsg23700 = '+proj=somerc +lat_0=47.14439372222222 +lon_0=19.04857177777778 +k_0=0.99993 +x_0=650000 +y_0=200000 +ellps=GRS67 +towgs84=52.17,-71.82,-14.9,0,0,0,0 +units=m +no_defs';
console.log(proj4(utm, epsg23700, [352920, 5263357]));