-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add distance(nodeset<geopoint> | geoshape | geotrace) function #277
Comments
Just to clarify,
This distance is the sum of the great circle distances (arcs over the Earth’s surface) between each point and the previous, starting with the 2nd point. Yes? |
Yes, that is how I understand it. Perhaps we should use your wording in the spec, it’s nice and clear. |
I’m coordinating with Martijn on a common implementation and shared tests, and after reading some background from him, think we should leave the area calculation alone, despite its imprecision. |
I’ve discovered that the area calculator web tool used to generate test data for our area calculation doesn’t close the polygon when producing its perimeter. The 2,076 meter value is the sum of the lengths of the four sides between the five points moving anti-clockwise from the top-right point. So, in our tests using this data, we also won’t close the polygons for perimeter calculations. |
That sounds right. The calculation should use the points defined by the expression passed in and not add any. In the case of a geoshape argument, the first and last point will be the same. |
Good to know. Thanks! |
OK, reviewers, at your convenience. 3 PRs. 302–304. I’m thinking 15–25 minutes would be needed. And if you like, I’ll even walk you through it if we can coordinate our schedules. |
Hello @dcbriccetti, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 7 days. Are you still working on this issue? If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 3 days. If you've decided to work on something else, simply comment Thank you for your valuable contributions to Open Data Kit! |
Silly bot. Can’t you read? |
Improve GeoUtils quality (Issue #277 part 1)
Add support for distance function to XPathFuncExpr (Issue #277 part 3)
Hello @dcbriccetti, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 7 days. Are you still working on this issue? If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 3 days. If you've decided to work on something else, simply comment Thank you for your valuable contributions to Open Data Kit! |
I need to complete so that it satisfies:
|
https://opendatakit.github.io/xforms-spec/#fn:distance
getodk/xforms-spec#129
The text was updated successfully, but these errors were encountered: