你好,朋友们,我需要把我在项目中收到的坐标转换为wkt,如果您能帮我的话,我会很感激的。
我收到的坐标信息:
(2) [32.834075024001905, 39.978537003695095]
发布于 2021-11-01 08:32:10
看看https://openlayers.org/en/latest/apidoc/module-ol_format_WKT.html
您的解决方案可能如下所示
var format = new ol.format.WKT(),
wkt = format.writeGeometry(yourFeature.getGeometry());https://stackoverflow.com/questions/69794316
复制相似问题