Skip to content

Commit cf37789

Browse files
authored
Merge pull request #1231 from georust/mkirk/unify-densify
unify Densify trait (adds support for Geodesic, Rhumb)
2 parents f683c7a + 44dd231 commit cf37789

File tree

11 files changed

+513
-343
lines changed

11 files changed

+513
-343
lines changed

geo/CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@
5353
line_string.length::<Haversine>();
5454
```
5555
* <https://github.com/georust/geo/pull/1228>
56+
* Deprecated `DensifyHaversine`
57+
* BREAKING: `Densify::densify` is no longer strictly Euclidean, and now accepts a generic line measure parameter.
58+
```
59+
// Before
60+
line_string.densify();
61+
line_string.densify_haversine();
62+
// After
63+
line_string.densify::<Euclidean>();
64+
line_string.densify::<Haversine>();
65+
66+
// Additional measures are now supported
67+
line_string.densify::<Geodesic>();
68+
line_string.densify::<Rhumb>();
69+
```
5670
* Change IntersectionMatrix::is_equal_topo to now consider empty geometries as equal.
5771
* <https://github.com/georust/geo/pull/1223>
5872
* Fix `(LINESTRING EMPTY).contains(LINESTRING EMPTY)` and `(MULTIPOLYGON EMPTY).contains(MULTIPOINT EMPTY)` which previously

geo/src/algorithm/densify.rs

Lines changed: 0 additions & 263 deletions
This file was deleted.

0 commit comments

Comments
 (0)