Skip to content

Commit

Permalink
📌 Pin to georust/geo at rev 481196b
Browse files Browse the repository at this point in the history
Getter methods on AffineTransform implemented in georust/geo#1159 has been merged into the main branch of georust/geo, so no longer need to point to my personal fork. Also fixed a mismatched type when accessing the x_res and y_res attributes.
  • Loading branch information
weiji14 committed May 9, 2024
1 parent 4c08b64 commit 7a40655
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]

[dependencies]
bytes = "1.5.0"
geo = { git = "https://github.com/weiji14/geo.git", branch = "affinetransform-index", version = "0.28.0" }
geo = { git = "https://github.com/georust/geo.git", version = "0.28.0", rev = "481196b4e50a488442b3919e02496ad909fc5412" }
ndarray = "0.15.6"
numpy = "0.21.0"
object_store = { version = "0.9.0", features = ["http"] }
Expand Down
4 changes: 2 additions & 2 deletions src/io/geotiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ impl<R: Read + Seek> CogReader<R> {
let transform = self.transform()?; // affine transformation matrix

// Get spatial resolution in x and y dimensions
let x_res: &f64 = transform.a();
let y_res: &f64 = transform.e();
let x_res: &f64 = &transform.a();
let y_res: &f64 = &transform.e();

// Get xy coordinate of the center of the top left pixel
let x_origin: &f64 = &(transform.xoff() + x_res / 2.0);
Expand Down

0 comments on commit 7a40655

Please sign in to comment.