Skip to content

Commit

Permalink
53 update to latest geodesy (#54)
Browse files Browse the repository at this point in the history
* update packages and fix interfaces

* bump to 0.7.0

* update change log
  • Loading branch information
Rennzie authored Jun 21, 2024
1 parent f3e47f8 commit 365fc6c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- ## [Unreleased] -->

## [0.7.0] - 2024-21-08

### Changed

- Bumped Geodesy crate to latest
- Updated all deps to latest

## [0.6.0] - 2023-12-08

### Added
Expand Down
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "geodesy-wasm"
version = "0.6.0"
version = "0.7.0"
rust-version = "1.70"
keywords = ["geospatial", "geodesy", "cartography", "geography"]
categories = ["science"]
Expand All @@ -19,9 +19,9 @@ crate-type = ["cdylib", "rlib"]
default = ["console_error_panic_hook", "console_log"]

[dependencies]
wasm-bindgen = "0.2.88"
wasm-bindgen = "0.2.92"

geodesy_rs = { package = "geodesy", git = "https://github.com/Rennzie/geodesy.git", rev = "dd19f7f4ace656a04e009ca0133243cb49dc578c", version = "0.11.0", features = [
geodesy_rs = { package = "geodesy", git = "https://github.com/Rennzie/geodesy.git", rev = "02b3c87bbbdd4cd292ec38de6ac5dbb687068792", version = "0.13.0", default-features = false, features = [
"js",
] }

Expand All @@ -30,16 +30,16 @@ geodesy_rs = { package = "geodesy", git = "https://github.com/Rennzie/geodesy.gi
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
js-sys = "0.3.64"
thiserror = "1.0.44"
js-sys = "0.3.69"
thiserror = "1.0.61"
console_log = { version = "1.0.0", features = ["color"], optional = true }
log = "0.4.19"
log = "0.4.21"
float_eq = "1.0.1"
wasm-bindgen-futures = "0.4.39"
wasm-bindgen-futures = "0.4.42"
reqwest = "0.12.5"

[dev-dependencies]
wasm-bindgen-test = "0.3.38"
wasm-bindgen-test = "0.3.42"

[profile.release]
# Tell `rustc` to optimize for small code size.
Expand Down
2 changes: 1 addition & 1 deletion src/geodesy/context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{coordinate::Coordinates, wasmcontext::WasmContext};
use crate::error::{Error, WasmResult};
use geodesy_rs::{authoring::*, parse_proj, OpHandle};
use geodesy_rs::{authoring::*, ctx::OpHandle};
use wasm_bindgen::prelude::*;

/// A wrapper around a [geodesy_rs::Context]
Expand Down
4 changes: 4 additions & 0 deletions src/geodesy/coordinate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ impl CoordinateSet for Coordinates {
self.0.len() / 4
}

fn dim(&self) -> usize {
4
}

fn get_coord(&self, index: usize) -> Coor4D {
let start = index * 4;
let mut result = Coor4D::origin();
Expand Down
3 changes: 1 addition & 2 deletions src/geodesy/grids.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::error::{Result, WasmResult};
use geodesy_rs::Grid;
use geodesy_rs::{authoring::BaseGrid, Ntv2Grid};
use geodesy_rs::authoring::{BaseGrid, Grid, Ntv2Grid};
use js_sys::{DataView, Uint8Array};
use reqwest::Url;
use std::{
Expand Down

0 comments on commit 365fc6c

Please sign in to comment.