Skip to content

Commit

Permalink
Merge #214
Browse files Browse the repository at this point in the history
214: Use the proj crate r=urschrei a=lnicola

Fixes #211.

Co-authored-by: Laurentiu Nicola <lnicola@dend.ro>
  • Loading branch information
bors[bot] and lnicola committed May 12, 2018
2 parents 2771d3b + 3cc1cbe commit cebb504
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 437 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* Make serde an optional dependency for `geo`, rename feature to `use-serde`
* <https://github.com/georust/rust-geo/pull/209>
* Use the `proj` crate, rename feature to `use-proj`
* <https://github.com/georust/rust-geo/pull/214>
* Fix compilation errors when using the `proj` feature
* <https://github.com/georust/rust-geo/commit/0924f3179c95bfffb847562ee91675d7aa8454f5>

Expand Down
5 changes: 2 additions & 3 deletions geo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ serde = { version = "1.0", optional = true, features = ["derive"] }
spade = "1.3.0"
failure = "0.1.1"
postgis = { version = "0.5", optional = true }
proj-sys = { version = "0.6.1", optional = true }
libc = { version = "0.2.39", optional = true }
proj = { version = "0.5", optional = true }
geo-types = { version = "0.1.0", features = ["spade"] }

[features]
default = []
postgis-integration = ["postgis"]
proj = ["proj-sys", "libc"]
use-proj = ["proj"]
use-serde = ["serde", "geo-types/serde"]

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion geo/src/algorithm/map_coords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ mod test {
assert_eq!(p2.y(), 2f32);
}

#[cfg(feature = "proj")]
#[cfg(feature = "use-proj")]
#[test]
fn test_fallible() {
let f = |x: f64, y: f64| {
Expand Down
2 changes: 1 addition & 1 deletion geo/src/algorithm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ pub mod haversine_length;
/// Calculate, and work with, the winding order of Linestrings
pub mod winding_order;
/// Coordinate projections and transformations using [PROJ](http://proj4.org) v5.0.x
#[cfg(feature = "proj")]
#[cfg(feature = "use-proj")]
pub mod proj;
Loading

0 comments on commit cebb504

Please sign in to comment.