I need help to calculate the distance between longitude and latitude with KNIME
Hi @zhangsan
This previous post by @ScottF and @danielesser may help you to solve your problem:
Please let us know if you need more help for this. The forum will be happy to help you.
Best wishes
Ael
你好 @zhangsan
@ScottF 和 @danielesser 的最后一篇文章可能会帮助您解决问题。
如果您需要更多帮助,请告诉我们。 论坛将很乐意为您提供帮助。
最好的祝愿
空气
Ael
谢谢你的帮助,这个帖子我看了,感觉实现起来复杂度偏高。
他的这个答复 没有给出具体的 节点 名字,我是KNIME新手,不确定的答案无法理解。
@zhangsan as @aworker has mentioned the best way would be the Palladian nodes. You can check out the descriptions and also the attached examples:
Maybe you could provide the data as a file so someone might build a working example.
也许您可以将数据作为文件提供,以便有人可以构建一个有效的示例。
我知道了。 你能在这里以文本格式发布你的 4 列吗?
我会看看我能做些什么作为一个简单的解决方案
我没有找寻到 Palladian 与 GEO DISTANCE 的节点,所以说他的答复对我实现困难,
demo12051-lonlat.xlsx (9.5 KB)
palladian 是一个单独的工具,您必须从他们的网站安装:Palladian — NodePit
感谢你的答复,我尝试一下。但是我想要的是KNIME本身存在一个这样的封装节点,便于我精简步骤,因为太复杂的实现方式完全可以使用math替代。
Hi @zhangsan
Please find below a very simple solution implemented in Java to calculate distances between two Latitude and Longitude coordinates. It does it in Km & Miles (land & Nautical)
20211205 Pikairos calculate distance between longitude and latitude in Java.knwf (28 KB)
Hope this helps
Best wishes
Ael
PS: The Java source code is from here
你好 @zhangsan
请在下面找到一个用 Java 实现的非常简单的解决方案,用于计算两个纬度和经度坐标之间的距离。 它以公里和英里(陆地和海洋)完成
希望这可以帮助 ;-)
最好的祝愿
Ael
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.