diff --git a/Cargo.lock b/Cargo.lock index 388396d09b..80bd63ca8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5642,9 +5642,6 @@ name = "ruzstd" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69e4ce4a039f42bf25920b95667e4d789e98749ab11bbb8d2c2936f788421bb5" -dependencies = [ - "twox-hash", -] [[package]] name = "ryu" @@ -6349,16 +6346,17 @@ dependencies = [ [[package]] name = "terrio-crs" -version = "0.2.4" -source = "git+https://github.com/opengeos/terrio?rev=bbc0aaef92c21844c4adfaa8808e9ba15f0faa8f#bbc0aaef92c21844c4adfaa8808e9ba15f0faa8f" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c88b2823724bc5e77166815a6c088796defb98f24f51580ddd7244578dab65e" dependencies = [ "geographiclib-rs", "libc", - "ruzstd", "serde", "serde_json", "thiserror 2.0.21", "tiff", + "zrip", ] [[package]] @@ -8453,6 +8451,43 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "zrip" +version = "0.8.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e6e42015358c525cdd20b7e110ac8f25838efacfe89a4f5890b9c464a6c270" +dependencies = [ + "zrip-core", + "zrip-decode", + "zrip-encode", +] + +[[package]] +name = "zrip-core" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47a015d2504d12688520bc7ba375a08ded1c1838795e21d2a0c12a4312614152" + +[[package]] +name = "zrip-decode" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58d8a5160431444760787034d0c732ba1bf2a9925364aa4f7497bfee76f51c3f" +dependencies = [ + "fearless_simd 1.2.0", + "zrip-core", +] + +[[package]] +name = "zrip-encode" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aaf5071da1730bd45ba87479d223a27215cab35371334f5533e7fb94ad0fc07" +dependencies = [ + "fearless_simd 1.2.0", + "zrip-core", +] + [[package]] name = "zstd" version = "0.13.4" diff --git a/Cargo.toml b/Cargo.toml index 05c097ae1e..08d96bef30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,9 +80,8 @@ weezl = "0.2" # The tests' Zstandard-compressed GeoTIFFs (the version the tiff crate decodes with). zstd = { version = "0.14", default-features = false } # Coordinate systems and transformations: EPSG, ESRI and IAU tables, datum shifts and grids, in pure -# Rust (opengeos/RustGIS#2032). From opengeos/terrio until a release after terrio-crs 0.2.4 carries -# the WKT reading RustGIS uses (opengeos/terrio#1012). -terrio-crs = { git = "https://github.com/opengeos/terrio", rev = "bbc0aaef92c21844c4adfaa8808e9ba15f0faa8f", default-features = false } +# Rust (opengeos/RustGIS#2032). +terrio-crs = { version = "0.3.0", default-features = false } base64 = "0.23" # Deflate for PDF image streams. miniz_oxide = "0.9" diff --git a/THIRD-PARTY-LICENSES.txt b/THIRD-PARTY-LICENSES.txt index b2c739726f..445fbd13ea 100644 --- a/THIRD-PARTY-LICENSES.txt +++ b/THIRD-PARTY-LICENSES.txt @@ -9470,7 +9470,7 @@ SOFTWARE. ==================================================================================================== MIT License Used by: block2, bufrw, dispatch, dpi, i_key_sort, libm, objc-sys, objc2, objc2-app-kit, objc2-encode, -objc2-foundation, rsqlite-vfs, yore +objc2-foundation, rsqlite-vfs, yore, zrip-core, zrip-decode, zrip-encode ==================================================================================================== MIT License @@ -11377,6 +11377,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +==================================================================================================== +MIT License +Used by: zrip +==================================================================================================== + +MIT License + +Copyright (c) 2026 Patrik Wenger + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ==================================================================================================== SIL Open Font License 1.1 Used by: epaint_default_fonts @@ -12361,6 +12388,7 @@ Terrio files derived from PROJ source files (each file's header names them): crates/terrio-crs/src/def.rs crates/terrio-crs/src/grid.rs crates/terrio-crs/src/math.rs + crates/terrio-crs/src/methods.rs crates/terrio-crs/src/params.rs crates/terrio-crs/src/projections.rs crates/terrio-crs/src/projections/perspective.rs @@ -12481,8 +12509,8 @@ Geodetic Parameter Dataset (https://epsg.org), owned by the International Associ Gas Producers (IOGP), through PROJ's database and GDAL. They are redistributed under the EPSG Dataset Terms of Use (https://epsg.org/terms-of-use.html), with this attribution. They are not the EPSG Dataset itself, and terrio is not endorsed by IOGP. The EPSG method and parameter names and codes in -crates/terrio-crs/src/projjson_write.rs and crates/terrio/src/drivers/vector/projjson.rs come -from the same dataset. +crates/terrio-crs/src/projjson_write.rs, crates/terrio-crs/src/methods.rs and +crates/terrio/src/drivers/vector/projjson.rs come from the same dataset. crates/terrio-crs/src/projjson_db.tsv.zst is derived from the same dataset (EPSG v12.029), through PROJ 9.7.1's database, under the same terms; the EPSG method and parameter names and codes in crates/terrio-crs/src/projjson_gdal.rs come from it too. @@ -12521,6 +12549,10 @@ terms. The test data crates/terrio-crs/tests/data/helmert_to_wgs84.tsv (PROJ 9.9.0's datum transformations to WGS 84 of EPSG geographic CRSs, by scripts/gen_helmert_to_wgs84.py) is derived from the same dataset, under the same terms. +The EPSG codes and areas of use in the height reference data +crates/terrio-crs/tests/data/compound_heights.tsv and geodetic_3d.tsv (PROJ 9.9.0's placements, +by scripts/gen_compound_heights.py and scripts/gen_geodetic_3d.py) derive from the same dataset, +under the same terms. ------------------------------------------------------------------------------- Esri projection engine data diff --git a/apps/rustgis-mobile/THIRD-PARTY-LICENSES.txt b/apps/rustgis-mobile/THIRD-PARTY-LICENSES.txt index ed022f6279..b13941ec3e 100644 --- a/apps/rustgis-mobile/THIRD-PARTY-LICENSES.txt +++ b/apps/rustgis-mobile/THIRD-PARTY-LICENSES.txt @@ -8431,7 +8431,7 @@ SOFTWARE. ==================================================================================================== MIT License Used by: block2, bufrw, dispatch, dpi, i_key_sort, libm, objc-sys, objc2, objc2-encode, objc2-foundation, -objc2-ui-kit, yore +objc2-ui-kit, yore, zrip-core, zrip-decode, zrip-encode ==================================================================================================== MIT License @@ -9753,6 +9753,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +==================================================================================================== +MIT License +Used by: zrip +==================================================================================================== + +MIT License + +Copyright (c) 2026 Patrik Wenger + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ==================================================================================================== SIL Open Font License 1.1 Used by: epaint_default_fonts @@ -10712,6 +10739,7 @@ Terrio files derived from PROJ source files (each file's header names them): crates/terrio-crs/src/def.rs crates/terrio-crs/src/grid.rs crates/terrio-crs/src/math.rs + crates/terrio-crs/src/methods.rs crates/terrio-crs/src/params.rs crates/terrio-crs/src/projections.rs crates/terrio-crs/src/projections/perspective.rs @@ -10832,8 +10860,8 @@ Geodetic Parameter Dataset (https://epsg.org), owned by the International Associ Gas Producers (IOGP), through PROJ's database and GDAL. They are redistributed under the EPSG Dataset Terms of Use (https://epsg.org/terms-of-use.html), with this attribution. They are not the EPSG Dataset itself, and terrio is not endorsed by IOGP. The EPSG method and parameter names and codes in -crates/terrio-crs/src/projjson_write.rs and crates/terrio/src/drivers/vector/projjson.rs come -from the same dataset. +crates/terrio-crs/src/projjson_write.rs, crates/terrio-crs/src/methods.rs and +crates/terrio/src/drivers/vector/projjson.rs come from the same dataset. crates/terrio-crs/src/projjson_db.tsv.zst is derived from the same dataset (EPSG v12.029), through PROJ 9.7.1's database, under the same terms; the EPSG method and parameter names and codes in crates/terrio-crs/src/projjson_gdal.rs come from it too. @@ -10872,6 +10900,10 @@ terms. The test data crates/terrio-crs/tests/data/helmert_to_wgs84.tsv (PROJ 9.9.0's datum transformations to WGS 84 of EPSG geographic CRSs, by scripts/gen_helmert_to_wgs84.py) is derived from the same dataset, under the same terms. +The EPSG codes and areas of use in the height reference data +crates/terrio-crs/tests/data/compound_heights.tsv and geodetic_3d.tsv (PROJ 9.9.0's placements, +by scripts/gen_compound_heights.py and scripts/gen_geodetic_3d.py) derive from the same dataset, +under the same terms. ------------------------------------------------------------------------------- Esri projection engine data diff --git a/apps/rustgis-python/THIRD-PARTY-LICENSES.txt b/apps/rustgis-python/THIRD-PARTY-LICENSES.txt index d127375438..c96d0f38da 100644 --- a/apps/rustgis-python/THIRD-PARTY-LICENSES.txt +++ b/apps/rustgis-python/THIRD-PARTY-LICENSES.txt @@ -8131,7 +8131,7 @@ THE SOFTWARE. ==================================================================================================== MIT License -Used by: bufrw, i_key_sort, libm, rsqlite-vfs, yore +Used by: bufrw, i_key_sort, libm, rsqlite-vfs, yore, zrip-core, zrip-decode, zrip-encode ==================================================================================================== MIT License @@ -9502,6 +9502,33 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +==================================================================================================== +MIT License +Used by: zrip +==================================================================================================== + +MIT License + +Copyright (c) 2026 Patrik Wenger + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ==================================================================================================== SIL Open Font License 1.1 Used by: epaint_default_fonts @@ -10461,6 +10488,7 @@ Terrio files derived from PROJ source files (each file's header names them): crates/terrio-crs/src/def.rs crates/terrio-crs/src/grid.rs crates/terrio-crs/src/math.rs + crates/terrio-crs/src/methods.rs crates/terrio-crs/src/params.rs crates/terrio-crs/src/projections.rs crates/terrio-crs/src/projections/perspective.rs @@ -10581,8 +10609,8 @@ Geodetic Parameter Dataset (https://epsg.org), owned by the International Associ Gas Producers (IOGP), through PROJ's database and GDAL. They are redistributed under the EPSG Dataset Terms of Use (https://epsg.org/terms-of-use.html), with this attribution. They are not the EPSG Dataset itself, and terrio is not endorsed by IOGP. The EPSG method and parameter names and codes in -crates/terrio-crs/src/projjson_write.rs and crates/terrio/src/drivers/vector/projjson.rs come -from the same dataset. +crates/terrio-crs/src/projjson_write.rs, crates/terrio-crs/src/methods.rs and +crates/terrio/src/drivers/vector/projjson.rs come from the same dataset. crates/terrio-crs/src/projjson_db.tsv.zst is derived from the same dataset (EPSG v12.029), through PROJ 9.7.1's database, under the same terms; the EPSG method and parameter names and codes in crates/terrio-crs/src/projjson_gdal.rs come from it too. @@ -10621,6 +10649,10 @@ terms. The test data crates/terrio-crs/tests/data/helmert_to_wgs84.tsv (PROJ 9.9.0's datum transformations to WGS 84 of EPSG geographic CRSs, by scripts/gen_helmert_to_wgs84.py) is derived from the same dataset, under the same terms. +The EPSG codes and areas of use in the height reference data +crates/terrio-crs/tests/data/compound_heights.tsv and geodetic_3d.tsv (PROJ 9.9.0's placements, +by scripts/gen_compound_heights.py and scripts/gen_geodetic_3d.py) derive from the same dataset, +under the same terms. ------------------------------------------------------------------------------- Esri projection engine data diff --git a/crates/data/src/raster/wkt.rs b/crates/data/src/raster/wkt.rs index ddd1bc3153..cf33df6122 100644 --- a/crates/data/src/raster/wkt.rs +++ b/crates/data/src/raster/wkt.rs @@ -519,13 +519,18 @@ fn read_root(root: &Node, code: Option, text: &str) -> Result<(Crs, Option< /// WGS 84 that is its code's transformation then reads as the code. Only there: the text RustGIS /// writes for some codes approximates them away from it (Guam's projection, EPSG:3993, 1.5 cm at /// 0.1°) and is read back as the code; and a shift on WGS 84 itself, which a WGS 84 or Web -/// Mercator code's file may give, is none for PROJ 9.8.1 anywhere. +/// Mercator code's file may give, is none for PROJ anywhere. Web Mercator, which has no area of +/// use to take the centre of, is compared at 10°E 45°N. pub(crate) fn places_as(text: &str, crs: Crs) -> bool { let (Ok(file), Ok(code)) = (super::crs::transformer_of_wkt(text), super::crs::not_waiting_for_grids(|| crs.transformer())) else { return false; }; let centre = match crs { Crs::Epsg(c) => super::crs::area_centre(c), + // Away from the equator, where Web Mercator's sphere and an ellipsoid's Mercator (World + // Mercator, or GDAL 1's EPSG:900913 without its `PROJ4` extension, as PROJ reads it) are + // 21 km apart at 45°; at the origin they meet. + Crs::WebMercator => Some(rustgis_geom::Coord::new(10.0, 45.0)), _ => None, } .unwrap_or(rustgis_geom::Coord::new(0.0, 0.0)); @@ -4882,7 +4887,15 @@ pub(crate) mod tests { let utm = format!(r#"{},AUTHORITY["EPSG","32631"]]"#, ESRI_32631.strip_suffix(']').unwrap()); let towgs84 = |t: &str| utm.replace("298.257223563]]", &format!("298.257223563],{t}]")); assert_eq!(crs_from_wkt(&towgs84("TOWGS84[0,0,0]")), Ok(Crs::Epsg(32631))); - assert!(matches!(crs_from_wkt(&towgs84("TOWGS84[1,2,3]")), Ok(Crs::Custom(_)))); + // Nor with another: a shift on WGS 84 itself is none. PROJ 9.9.0 reads this text as a + // bound CRS and transforms it to EPSG:4326 without the shift (conda-forge PROJ 9.9.0 with + // pyproj 3.8.0 built on it, network off: `Transformer.from_crs(CRS.from_wkt(text), + // "EPSG:4326", always_xy=True).transform(500000, 5000000)` is 3°E 45.1534772°N), as + // EPSG:32631 does. + let shifted = crs_from_wkt(&towgs84("TOWGS84[1,2,3]")); + assert_eq!(shifted, Ok(Crs::Epsg(32631))); + let ll = Crs::Epsg(32631).transformer().unwrap().to_lonlat(Coord::new(500_000.0, 5_000_000.0)).unwrap(); + assert!((ll.x - 3.0).abs() < 1e-9 && (ll.y - 45.153_477_2).abs() < 1e-7, "{ll:?}"); } /// Another body's system with an EPSG code (the Earth's) is read from its parameters, not as @@ -5117,6 +5130,20 @@ pub(crate) mod tests { assert_eq!(crs_from_wkt(&shifted), Ok(Crs::WebMercator)); let shifted = without_proj4_extension(&shifted).unwrap(); assert!(matches!(crs_from_wkt(&shifted), Ok(Crs::Custom(_))), "{:?}", crs_from_wkt(&shifted)); + // Without the extension it is Mercator on the WGS 84 ellipsoid, as PROJ 9.9.0 reads it + // (conda-forge PROJ 9.9.0 with pyproj 3.8.0 built on it, network off: + // `Transformer.from_crs(CRS.from_wkt(text), "EPSG:4326", always_xy=True)` puts + // 6 679 169.4476 m E, 5 621 521.4862 m N at 60°E 45.1923152°N, with or without the + // shift), not Web Mercator's sphere (45°N). + for text in [without_proj4_extension(google).unwrap(), shifted] { + let ll = crs_from_wkt(&text) + .unwrap() + .transformer() + .unwrap() + .to_lonlat(Coord::new(6_679_169.447_596_414, 5_621_521.486_192_066)) + .unwrap(); + assert!((ll.y - 45.192_315).abs() < 1e-4, "{ll:?}"); + } // A system named and projected as Web Mercator stays Web Mercator, and a shift its file // gives is said to be set aside. let esri = ESRI_3857.replace("6378137.0,298.257223563]]", "6378137.0,298.257223563],TOWGS84[1,2,3]]"); diff --git a/deny.toml b/deny.toml index 12e10cbb28..78e882a36d 100644 --- a/deny.toml +++ b/deny.toml @@ -36,6 +36,5 @@ ignore = true unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] -# terrio-crs, pinned by `rev` in Cargo.toml until a release after 0.2.4 (opengeos/RustGIS#2032). -allow-git = ["https://github.com/opengeos/terrio"] +allow-git = [] required-git-spec = "rev" diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index c17a2e82cd..cc91b1547e 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -212,6 +212,19 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" +[[package]] +name = "bigdecimal" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fa3f3d8cbf4dffcfe4991de61d012bef509a409ecbe9dd41049bfe32b4d4653" +dependencies = [ + "autocfg", + "libm", + "num-bigint 0.4.8", + "num-integer", + "num-traits", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -596,6 +609,12 @@ dependencies = [ "cmov", ] +[[package]] +name = "data-url" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376" + [[package]] name = "dbase" version = "0.8.0" @@ -820,6 +839,12 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "fearless_simd" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a7107516a8be9a4ffe92495f3dbfe04348be0ad18f17c67a1d846511f99e599" + [[package]] name = "find-msvc-tools" version = "0.1.14" @@ -868,6 +893,18 @@ dependencies = [ "tempfile", ] +[[package]] +name = "float-cmp" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" + +[[package]] +name = "float_eq" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28a80e3145d8ad11ba0995949bbcf48b9df2be62772b3d351ef017dff6ecb853" + [[package]] name = "float_next_after" version = "1.0.0" @@ -1109,6 +1146,28 @@ dependencies = [ "weezl 0.1.12", ] +[[package]] +name = "h3o" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e09e90732a210d62fb37ce0452cac2b999aeff4ebd1998b53cf45290175b39b5" +dependencies = [ + "ahash", + "either", + "float_eq", + "geo", + "geo-traits", + "h3o-bit", + "libm", + "ordered-float", +] + +[[package]] +name = "h3o-bit" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b42eb4efef1f96510ae1a33b2682562a677d504641e9903a77bf5c666b9013e" + [[package]] name = "half" version = "2.7.1" @@ -1414,6 +1473,12 @@ dependencies = [ "quick-error", ] +[[package]] +name = "imagesize" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a" + [[package]] name = "indexmap" version = "2.14.2" @@ -1509,6 +1574,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "kurbo" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2" +dependencies = [ + "arrayvec", + "euclid", + "polycool", + "smallvec", +] + [[package]] name = "laz" version = "0.14.0" @@ -1914,6 +1991,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +[[package]] +name = "ordered-float" +version = "5.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f59006ce1e204c30956638535b74d317bca99477b9356dfaec54c37f6f600ab" +dependencies = [ + "num-traits", +] + [[package]] name = "owned_ttf_parser" version = "0.25.1" @@ -2003,6 +2089,12 @@ dependencies = [ "siphasher", ] +[[package]] +name = "pico-args" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" + [[package]] name = "pin-project-lite" version = "0.2.17" @@ -2028,6 +2120,15 @@ dependencies = [ "miniz_oxide 0.8.9", ] +[[package]] +name = "polycool" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6" +dependencies = [ + "arrayvec", +] + [[package]] name = "postgres" version = "0.19.14" @@ -2278,6 +2379,30 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +[[package]] +name = "resvg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77bb4b284cf8a5c8ae721594af53387fb755d2196fddb32b2acfb4fa9251fa0c" +dependencies = [ + "bytemuck", + "log", + "pico-args", + "rgb", + "svgtypes", + "tiny-skia", + "usvg", +] + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + [[package]] name = "ring" version = "0.17.14" @@ -2363,9 +2488,11 @@ version = "0.8.0" dependencies = [ "a5", "geo", + "h3o", "log", "rustgis-data", "rustgis-geom", + "s2", "serde", "serde_json", ] @@ -2503,15 +2630,19 @@ dependencies = [ "bytemuck", "epaint_default_fonts", "image", + "kurbo", "log", "lyon", "miniz_oxide 0.9.1", + "resvg", "rustgis-data", "rustgis-geom", "rustgis-map", "rustgis-tiles", "serde_json", + "simplecss", "subsetter", + "svgtypes", "tiny-skia", "ttf-parser", "unicode-segmentation", @@ -2649,9 +2780,6 @@ name = "ruzstd" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69e4ce4a039f42bf25920b95667e4d789e98749ab11bbb8d2c2936f788421bb5" -dependencies = [ - "twox-hash", -] [[package]] name = "ryu" @@ -2659,6 +2787,16 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +[[package]] +name = "s2" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "081105773b1c0ff138641d8d27206aa1ea08fe604736a17f5af7d3c49f1500d7" +dependencies = [ + "bigdecimal", + "libm", +] + [[package]] name = "same-file" version = "1.0.6" @@ -2869,6 +3007,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" +[[package]] +name = "simplecss" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a9c6883ca9c3c7c90e888de77b7a5c849c779d25d74a1269b0218b14e8b136c" +dependencies = [ + "log", +] + [[package]] name = "siphasher" version = "1.0.4" @@ -2952,6 +3099,9 @@ name = "strict-num" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" +dependencies = [ + "float-cmp", +] [[package]] name = "string-interner" @@ -2989,6 +3139,16 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "svgtypes" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f12b12995e3638c70618c1facb1ce65302f6a6f706b675f07c58a5d7391120e" +dependencies = [ + "kurbo", + "siphasher", +] + [[package]] name = "syn" version = "2.0.119" @@ -3063,16 +3223,17 @@ dependencies = [ [[package]] name = "terrio-crs" -version = "0.2.4" -source = "git+https://github.com/opengeos/terrio?rev=bbc0aaef92c21844c4adfaa8808e9ba15f0faa8f#bbc0aaef92c21844c4adfaa8808e9ba15f0faa8f" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c88b2823724bc5e77166815a6c088796defb98f24f51580ddd7244578dab65e" dependencies = [ "geographiclib-rs", "libc", - "ruzstd", "serde", "serde_json", "thiserror 2.0.21", "tiff", + "zrip", ] [[package]] @@ -3484,6 +3645,25 @@ dependencies = [ "serde", ] +[[package]] +name = "usvg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb896f04730b97805bbc3191fc57e4bf03face0f14577dd42e783c4d8c98802" +dependencies = [ + "data-url", + "imagesize", + "kurbo", + "log", + "pico-args", + "roxmltree", + "simplecss", + "siphasher", + "strict-num", + "svgtypes", + "tiny-skia-path", +] + [[package]] name = "utf8-zero" version = "0.8.1" @@ -4173,6 +4353,43 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "zrip" +version = "0.8.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e6e42015358c525cdd20b7e110ac8f25838efacfe89a4f5890b9c464a6c270" +dependencies = [ + "zrip-core", + "zrip-decode", + "zrip-encode", +] + +[[package]] +name = "zrip-core" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47a015d2504d12688520bc7ba375a08ded1c1838795e21d2a0c12a4312614152" + +[[package]] +name = "zrip-decode" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58d8a5160431444760787034d0c732ba1bf2a9925364aa4f7497bfee76f51c3f" +dependencies = [ + "fearless_simd", + "zrip-core", +] + +[[package]] +name = "zrip-encode" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aaf5071da1730bd45ba87479d223a27215cab35371334f5533e7fb94ad0fc07" +dependencies = [ + "fearless_simd", + "zrip-core", +] + [[package]] name = "zstd" version = "0.13.4" diff --git a/fuzz/deny.toml b/fuzz/deny.toml index 628f3988c6..788cb9b37d 100644 --- a/fuzz/deny.toml +++ b/fuzz/deny.toml @@ -37,6 +37,5 @@ ignore = true unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] -# terrio-crs, pinned by `rev` in Cargo.toml until a release after 0.2.4 (opengeos/RustGIS#2032). -allow-git = ["https://github.com/opengeos/terrio"] +allow-git = [] required-git-spec = "rev"