Skip to content

Commit

Permalink
Merge #42
Browse files Browse the repository at this point in the history
42: upgrade geo_types r=frewsxcv a=antoine-de

update to geo_types 0.4

It might be worth waiting if a new version is pushed after [this merge](georust/geo#347), but anyway I think it'll be a patch version change.

Co-authored-by: antoine-de <antoine.desbordes@gmail.com>
  • Loading branch information
bors[bot] and antoine-de committed Feb 22, 2019
2 parents 8efb732 + a7475d5 commit 30c53e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "wkt"
description = "Rust read/write support for well-known text (WKT)"
version = "0.4.0"
version = "0.5.0"
authors = ["Corey Farwell <coreyf@rwell.org>", "Antoine Desbordes <antoine.desbordes@gmail.com>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/georust/wkt"
Expand All @@ -10,7 +10,7 @@ readme = "README.md"
keywords = ["geo", "geospatial", "wkt"]

[dependencies]
geo-types = {version = "0.3", optional = true}
geo-types = {version = "0.4", optional = true}

[dev-dependencies]
criterion = { version = "0.2" }
Expand Down
6 changes: 2 additions & 4 deletions src/towkt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ fn g_lines_to_w_lines(g_lines: &[geo_types::LineString<f64>]) -> Vec<LineString>
}

fn g_polygon_to_w_polygon(g_polygon: &geo_types::Polygon<f64>) -> Polygon {
let &geo_types::Polygon {
exterior: ref outer_line,
interiors: ref inner_lines,
} = g_polygon;
let outer_line = g_polygon.exterior();
let inner_lines = g_polygon.interiors();
let mut poly_lines = vec![];

// Outer
Expand Down

0 comments on commit 30c53e6

Please sign in to comment.