Skip to content

Commit

Permalink
Update proj to 0.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Jan 10, 2020
1 parent 79b5d2a commit 9b43ce5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changes

## geo (unreleased)

* Bump proj to 0.14.4
* <https://github.com/georust/geo/pull/412>
* Add `BoundingRect` implementation for `Rect`
* <https://github.com/georust/geo/pull/355>
* Add Chamberlain–Duquette area algorithm
Expand Down
2 changes: 1 addition & 1 deletion geo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ num-traits = "0.2"
serde = { version = "1.0", optional = true, features = ["derive"] }
rstar = { version = "0.7" }
postgis = { version = "0.6", optional = true }
proj = { version = "0.12.2", optional = true }
proj = { version = "0.14.4", optional = true }

# Swap the next two lines when publishing
# geo-types = { version = "0.4.2", features = ["rstar"] }
Expand Down
6 changes: 2 additions & 4 deletions geo/src/algorithm/map_coords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ pub trait TryMapCoords<T, NT> {
/// // 👽
/// # #[cfg(feature = "use-proj")]
/// let usa_m = Point::new(-115.797615, 37.2647978);
/// // PROJ expects coordinates in EPSG:4326 order: i.e. Lat, Lon
/// # #[cfg(feature = "use-proj")]
/// let usa_ft = usa_m.try_map_coords(|&(x, y)| f(y, x)).unwrap();
/// let usa_ft = usa_m.try_map_coords(|&(x, y)| f(x, y)).unwrap();
/// # #[cfg(feature = "use-proj")]
/// assert_eq!(6693625.67217475, usa_ft.x());
/// # #[cfg(feature = "proj")]
Expand Down Expand Up @@ -750,8 +749,7 @@ mod test {
};
// 👽
let usa_m = Point::new(-115.797615, 37.2647978);
// PROJ expects coordinates in EPSG:4326 order: i.e. Lat, Lon
let usa_ft = usa_m.try_map_coords(|&(x, y)| f(y, x)).unwrap();
let usa_ft = usa_m.try_map_coords(|&(x, y)| f(x, y)).unwrap();
assert_eq!(6693625.67217475, usa_ft.x());
assert_eq!(3497301.5918027186, usa_ft.y());
}
Expand Down

0 comments on commit 9b43ce5

Please sign in to comment.