You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 17:56:04 UTC
[GitHub] [streampipes] dominikriemer opened a new issue, #796: Improve Distance Calculator with more accuracy
dominikriemer opened a new issue, #796:
URL: https://github.com/apache/streampipes/issues/796
at the moment the Haversine formula is used to calculate the distance between 2 lat/lng spherical points. Using the Vincenty solutions leads to a more accurate result
https://github.com/apache/streampipes/tree/dev/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/processor/staticdistancecalculator
The distance is calculated from a static point
Berlin
lat 52.520008
lng 13.404954
||city|| distance_sp|| distance Vincenty || alpha ||
|Karlsruhe| 524.871 | 525.735 | -0.864 |
| Sidney | 16094.221| 16088.138 | 6.083 |
|Hamburg | 255.306 | 256.015 | -0.709 |
| New York | 6384.996 | 6402.425 | -17.429 |
Backgroundinfo https://www.neovasolutions.com/2019/10/04/haversine-vs-vincenty-which-is-the-best/
Testdata:
[^City_Koords.csv]
Imported from Jira [STREAMPIPES-641](https://issues.apache.org/jira/browse/STREAMPIPES-641). Original Jira may contain additional context.
Reported by: micklich.
Subtask of issue #795
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [streampipes] flomickl commented on issue #796: Improve Distance Calculator with more accuracy
Posted by GitBox <gi...@apache.org>.
flomickl commented on issue #796:
URL: https://github.com/apache/streampipes/issues/796#issuecomment-1374123751
My plan is to add this lib to get better performance for calculation and other tasks
https://github.com/geographiclib/geographiclib-java
```
<!-- https://mvnrepository.com/artifact/net.sf.geographiclib/GeographicLib-Java -->
<dependency>
<groupId>net.sf.geographiclib</groupId>
<artifactId>GeographicLib-Java</artifactId>
<version>2.0</version>
</dependency>
```
Due to MIT license -> https://geographiclib.sourceforge.io/LICENSE.txt
I think it is safe to add.
It is correct @dominikriemer ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org