Skip to content

Commit

Permalink
Bump h3 to v4.2.0
Browse files Browse the repository at this point in the history
The constant changes in tests are related to uber/h3#749
  • Loading branch information
zachasme committed Jan 2, 2025
1 parent ead915f commit 9f732a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ avoid adding features or APIs which do not map onto the
Click to see more.
</summary>

- Bump `h3` to `v4.2.0`
- Fix for MacOS in nixpkgs / NixOS (see [#141], thanks [@wolfgangwalther])

</details>
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ endif()
# Listing the version is nice here since it sets lots of useful variables
project(
h3-pg
VERSION 4.1.4
VERSION 4.2.0
LANGUAGES C
)
# set this to "${PROJECT_VERSION}" on release
#set(INSTALL_VERSION "${PROJECT_VERSION}")
set(INSTALL_VERSION "unreleased")
set(H3_CORE_VERSION 4.1.0)
set(H3_CORE_SHA256 ec99f1f5974846bde64f4513cf8d2ea1b8d172d2218ab41803bf6a63532272bc)
set(H3_CORE_VERSION 4.2.0)
set(H3_CORE_SHA256 438db46fc2b388785d2a0d8e26aa5509739240a7b50b2510c416778d871a4e11)

# If you set any CMAKE_ variables, that can go here.
# (But usually don't do this, except maybe for C++ standard)
Expand Down
4 changes: 2 additions & 2 deletions h3/test/expected/miscellaneous.out
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ SELECT h3_cell_area(h3_lat_lng_to_cell(POINT(0, 0), 10), 'km^2') = h3_cell_area(
--
-- TEST h3_get_hexagon_edge_length_avg
--
SELECT h3_get_hexagon_edge_length_avg(10, 'm') = 65.90780749;
SELECT h3_get_hexagon_edge_length_avg(10, 'm') - 75.86378287 < :epsilon;
t

SELECT h3_get_hexagon_edge_length_avg(10, 'km') = 0.065907807;
SELECT h3_get_hexagon_edge_length_avg(10, 'km') - 0.075863783 < :epsilon;
t

SELECT h3_get_hexagon_edge_length_avg(10, 'km') = h3_get_hexagon_edge_length_avg(10);
Expand Down
4 changes: 2 additions & 2 deletions h3/test/sql/miscellaneous.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ SELECT h3_cell_area(h3_lat_lng_to_cell(POINT(0, 0), 10), 'km^2') = h3_cell_area(
-- TEST h3_get_hexagon_edge_length_avg
--

SELECT h3_get_hexagon_edge_length_avg(10, 'm') = 65.90780749;
SELECT h3_get_hexagon_edge_length_avg(10, 'km') = 0.065907807;
SELECT h3_get_hexagon_edge_length_avg(10, 'm') - 75.86378287 < :epsilon;
SELECT h3_get_hexagon_edge_length_avg(10, 'km') - 0.075863783 < :epsilon;
SELECT h3_get_hexagon_edge_length_avg(10, 'km') = h3_get_hexagon_edge_length_avg(10);

--
Expand Down

0 comments on commit 9f732a1

Please sign in to comment.