-
Notifications
You must be signed in to change notification settings - Fork 466
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 h3Distance, and internal h3ToIjk and ijkDistance #83
Commits on Jul 19, 2018
-
Add h3ToIjk, along with ijkDistance and h3Distance
Adds an h3ToIjk function which produces users consumable IJK+ coordinates. An "origin" for the coordinate system must be specified, and coordinates are only comparable if they were obtained from the same origin. This is limited to obtaining coordinates for indexes which are on the same base cell or neighboring base cells. Pentagons have more restrictions about crossing the pentagonal distortion. The intention is in the future this could be improved to handle pentagon distortion better, which may make current coordinates invalid. Coordinates should not be persisted or passed between library versions. Pentagon cases were mostly restricted by experimentally disabling a number of cases. With IJK+ coordinates, it's possible to determine the grid distance of cells, with the same limitations of h3ToIjk. This is done under the assumption that the distances that are of interest are below the granularity of a base cell (at that resolution, haversine may be a better approach.) Along with this change, CoordIJK is moved to the public API.
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for 58ee5c3 - Browse repository at this point
Copy the full SHA 58ee5c3View commit details -
Make h3ToIjk and ijkDistance internal
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for e9eaec6 - Browse repository at this point
Copy the full SHA e9eaec6View commit details -
Isaac Brodsky committed
Jul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for b8fd4e8 - Browse repository at this point
Copy the full SHA b8fd4e8View commit details -
Add some coverage of invalid mode, resolution cases
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for b245905 - Browse repository at this point
Copy the full SHA b245905View commit details -
Change another case of calloc to stack alloc in tests
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for 53ccd77 - Browse repository at this point
Copy the full SHA 53ccd77View commit details -
Refactor _getBaseCellDirection to its own function
Also change some tests to stack allocation and remove an `else if` chain.
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for 5924008 - Browse repository at this point
Copy the full SHA 5924008View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1deaa9 - Browse repository at this point
Copy the full SHA d1deaa9View commit details -
Add h3ToIjk filter application to changelog
Isaac Brodsky committedJul 19, 2018 Configuration menu - View commit details
-
Copy full SHA for 6b7299f - Browse repository at this point
Copy the full SHA 6b7299fView commit details