Skip to content

Commit c99cad0

Browse files
authored
Prepare for release v3.7.0 (#395)
* update changelog and fix @defgroup for exactEdgeLength * update docs * Changelog: Change CHANGELOG to match style of previous CHANGELOG changes * get reeeealy specific in the release steps
1 parent 2c41e74 commit c99cad0

File tree

6 files changed

+101
-105
lines changed

6 files changed

+101
-105
lines changed

.ycm_extra_conf.py

-92
This file was deleted.

CHANGELOG.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@ The public API of this library consists of the functions declared in file
66
[h3api.h.in](./src/h3lib/include/h3api.h.in).
77

88
## [Unreleased]
9-
### Added
10-
- area and haversine distance functions:
11-
- cellAreaRads2
12-
- cellAreaKm2
13-
- cellAreaM2
14-
- pointDistRads
15-
- pointDistKm
16-
- pointDistM
17-
- exactEdgeLengthRads
18-
- exactEdgeLengthKm
19-
- exactEdgeLengthM
9+
10+
## [3.7.0] - 2020-09-28
11+
### Added
12+
- Area and haversine distance functions (#377):
13+
- `cellAreaRads2`
14+
- `cellAreaKm2`
15+
- `cellAreaM2`
16+
- `pointDistRads`
17+
- `pointDistKm`
18+
- `pointDistM`
19+
- `exactEdgeLengthRads`
20+
- `exactEdgeLengthKm`
21+
- `exactEdgeLengthM`
22+
- Refactor `getH3UnidirectionalEdgeBoundary` for accuracy at small resolutions. (#391)
23+
- Speeds up `getH3UnidirectionalEdgeBoundary` by about 3x.
24+
- Implement core logic for future vertex mode.
2025
### Fixed
2126
- Fixed building the library with custom memory allocation functions on Mac OSX. (#362)
2227
- The installed H3 CMake target should have include directories specified. (#381)

RELEASE.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
1. Create a PR "Preparing for release X.Y.Z" against master branch
44
* Alter CHANGELOG.md from `[Unreleased]` to `[X.Y.Z] YYYY-MM-DD`
5-
* Run `make update-version` and give `X.Y.Z` when prompted
5+
* Run `make update-version` and give `X.Y.Z` when prompted (this updates
6+
the VERSION file, so don't change it manually)
67
* Check that all merges that need to be in the changelog are present
8+
* Get reviews and merge the PR
79

810
2. Create a release "Release X.Y.Z" on Github
911
* Create Tag `vX.Y.Z`

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.4
1+
3.7.0

docs/api/misc.md

+76
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,30 @@ double hexAreaM2(int res);
3434

3535
Average hexagon area in square meters at the given resolution.
3636

37+
## cellAreaKm2
38+
39+
```
40+
double cellAreaKm2(H3Index h);
41+
```
42+
43+
Exact area of specific cell in square kilometers.
44+
45+
## cellAreaM2
46+
47+
```
48+
double cellAreaM2(H3Index h);
49+
```
50+
51+
Exact area of specific cell in square meters.
52+
53+
## cellAreaRads2
54+
55+
```
56+
double cellAreaRads2(H3Index h);
57+
```
58+
59+
Exact area of specific cell in square radians.
60+
3761
## edgeLengthKm
3862

3963
```
@@ -50,6 +74,31 @@ double edgeLengthM(int res);
5074

5175
Average hexagon edge length in meters at the given resolution.
5276

77+
78+
## exactEdgeLengthKm
79+
80+
```
81+
double exactEdgeLengthKm(H3Index edge);
82+
```
83+
84+
Exact edge length of specific unidirectional edge in kilometers.
85+
86+
## exactEdgeLengthM
87+
88+
```
89+
double exactEdgeLengthM(H3Index edge);
90+
```
91+
92+
Exact edge length of specific unidirectional edge in meters.
93+
94+
## exactEdgeLengthRads
95+
96+
```
97+
double exactEdgeLengthRads(H3Index edge);
98+
```
99+
100+
Exact edge length of specific unidirectional edge in radians.
101+
53102
## numHexagons
54103

55104
```
@@ -91,3 +140,30 @@ int pentagonIndexCount();
91140
```
92141

93142
Number of pentagon **H3** indexes per resolution. This is always 12, but provided as a convenience.
143+
144+
## pointDistKm
145+
146+
```
147+
double pointDistKm(const GeoCoord *a, const GeoCoord *b);
148+
```
149+
150+
Gives the "great circle" or "haversine" distance between pairs of
151+
GeoCoord points (lat/lng pairs) in kilometers.
152+
153+
## pointDistM
154+
155+
```
156+
double pointDistM(const GeoCoord *a, const GeoCoord *b);
157+
```
158+
159+
Gives the "great circle" or "haversine" distance between pairs of
160+
GeoCoord points (lat/lng pairs) in meters.
161+
162+
## pointDistRads
163+
164+
```
165+
double pointDistRads(const GeoCoord *a, const GeoCoord *b);
166+
```
167+
168+
Gives the "great circle" or "haversine" distance between pairs of
169+
GeoCoord points (lat/lng pairs) in radians.

src/h3lib/include/h3api.h.in

+5
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,12 @@ double H3_EXPORT(edgeLengthKm)(int res);
301301

302302
/** @brief average hexagon edge length in meters (excludes pentagons) */
303303
double H3_EXPORT(edgeLengthM)(int res);
304+
/** @} */
304305

306+
/** @defgroup exactEdgeLength exactEdgeLength
307+
* Functions for exactEdgeLength
308+
* @{
309+
*/
305310
/** @brief exact length for a specific unidirectional edge in radians*/
306311
double H3_EXPORT(exactEdgeLengthRads)(H3Index edge);
307312

0 commit comments

Comments
 (0)