diff --git a/rust/case2geojson/Cargo.lock b/rust/case2geojson/Cargo.lock index 0451595..ef8d7c2 100644 --- a/rust/case2geojson/Cargo.lock +++ b/rust/case2geojson/Cargo.lock @@ -463,15 +463,16 @@ dependencies = [ [[package]] name = "geojson" -version = "0.24.2" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e26f3c45b36fccc9cf2805e61d4da6bc4bbd5a3a9589b01afa3a40eff703bd79" +checksum = "510c094bfc76ea34d02eee00833254945b70491d79a9c0b050abed6eaa799ffb" dependencies = [ "geo-types", "log", "serde", "serde_json", "thiserror 2.0.12", + "tinyvec", ] [[package]] @@ -1778,6 +1779,22 @@ dependencies = [ "syn 2.0.100", ] +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "serde_core", + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + [[package]] name = "tokio" version = "1.50.0" diff --git a/rust/case2geojson/Cargo.toml b/rust/case2geojson/Cargo.toml index 7f33507..a18095d 100644 --- a/rust/case2geojson/Cargo.toml +++ b/rust/case2geojson/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -geojson = "0.24.1" +geojson = "1.0.0" iref = "3.2.2" json-ld = { version = "0.21.4" } oxigraph = { version = "0.5.6", default-features = false} diff --git a/rust/case2geojson/src/main.rs b/rust/case2geojson/src/main.rs index c7fe5c8..0da0ebe 100644 --- a/rust/case2geojson/src/main.rs +++ b/rust/case2geojson/src/main.rs @@ -187,10 +187,7 @@ WHERE let f_latitude = (s_latitude).parse::().unwrap(); let f_longitude = (s_longitude).parse::().unwrap(); - gj_point = Some(geojson::Geometry::new(geojson::Value::Point(vec![ - f_longitude, - f_latitude, - ]))); + gj_point = Some(geojson::Geometry::new_point([f_longitude, f_latitude])); }; };