Skip to content

Commit

Permalink
Merge remote-tracking branch 'my/st_transform' into st_transform
Browse files Browse the repository at this point in the history
Signed-off-by: Fan Yang <yangfanlinux@gmail.com>

# Conflicts:
#	src/query/functions/src/scalars/geometry.rs
  • Loading branch information
kkk25641463 committed Jul 9, 2024
2 parents ad185cb + 0e45834 commit 3578f89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/query/functions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ordered-float = { workspace = true, features = [
"serde",
"rand",
] }
proj = { git = "https://github.com/georust/proj", branch = "main" }
proj = { git = "https://github.com/kkk25641463/proj.git", branch = "main", features = ["bundled_proj"] }
rand = { workspace = true }
regex = { workspace = true }
roaring = "0.10.1"
Expand Down
4 changes: 2 additions & 2 deletions src/query/functions/src/scalars/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ fn round_geometry_coordinates(geom: geo::Geometry<f64>) -> geo::Geometry<f64> {
.map(|coord| coord!( x:round_coordinate(coord.x), y:round_coordinate(coord.y)))
.collect(),
),
rounded_inner_rings.try_into().unwrap(),
rounded_inner_rings,
);

geo::Geometry::Polygon(rounded_polygon)
Expand Down Expand Up @@ -1868,7 +1868,7 @@ fn round_geometry_coordinates(geom: geo::Geometry<f64>) -> geo::Geometry<f64> {
rounded_inner_rings.push(LineString(rounded_coords));
}

Polygon::new(LineString(outer_ring), rounded_inner_rings.try_into().unwrap())
Polygon::new(LineString(outer_ring), rounded_inner_rings)
})
.collect();
geo::Geometry::MultiPolygon(geo::MultiPolygon::new(rounded_polygons))
Expand Down

0 comments on commit 3578f89

Please sign in to comment.