Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ of use.
| CFF test font (`crates/render/testdata/test-cff.otf`), read only by the PDF font tests | The RustGIS project: generated for this test with [fontTools](https://github.com/fonttools/fonttools) by the script in `crates/render/testdata/README.md`; its glyphs are made up | Apache-2.0 |
| JAXA Earth catalog test copy (`crates/tiles/tests/data/jaxa_catalog.v2.md`), read only by tests | JAXA: the [JAXA Earth API](https://data.earth.jaxa.jp/) dataset catalog ([catalog.v2.md](https://data.earth.jaxa.jp/app/mcp/catalog.v2.md)), copied on 2026-11-08 | JAXA's [terms of use](https://earth.jaxa.jp/en/data/policy/): free to use and redistribute, with credit to JAXA |
| CityGML test mesh (`crates/data/tests/data/rocking-chair.gml`), read only by tests | 97 faces of the rocking chair in OGC's CityGML 3.0 sample `Building_LOD3-EPSG25832.gml` ([CityGML-3.0Encodings](https://github.com/opengeospatial/CityGML-3.0Encodings/blob/master/Moved_to_CITYGML-3.0Encoding_CityGML/Examples/Examples-from-CityGML-2.0/building/CityGMLv3/Building_LOD3-EPSG25832.gml)), copyright (c) 2013 3DXScape, copied on 2026-11-12 and rewritten as a CityGML 2.0 object, coordinates unchanged | MIT |
| Datum grid test files (`crates/data/tests/data/grids/us_noaa_conus.tif`, `us_noaa_ethpgn.tif`), read only by the datum grid tests | NOAA's NADCON and HARN grids as converted by [PROJ-data](https://github.com/OSGeo/PROJ-data) (`us_noaa`), copied unchanged from [cdn.proj.org](https://cdn.proj.org) | Public domain |
| LERC GeoTIFF test files (`crates/data/tests/data/lerc/*.tif`), read only by the LERC tests | Written for the RustGIS project by `make_lerc.py` there with [GDAL](https://gdal.org) 3.9.3 through [rasterio](https://rasterio.readthedocs.io) 1.4.3, run only to write them; the values are made up | Apache-2.0 |
| Analysis reference corpus (`crates/analysis/tests/reference/`: layers and expected results) | Written for the RustGIS project from `generate.py` there: the layers are made up; the expected results were computed by [GEOS](https://libgeos.org) 3.13.1 through [Shapely](https://shapely.readthedocs.io) 2.1.2, and distances, buffers, areas and lengths by GeographicLib in [PROJ](https://proj.org) 9.5.1 through [pyproj](https://pyproj4.github.io/pyproj/) 3.7.2, run only to write them (GEOS is LGPL-2.1, Shapely BSD-3-Clause, PROJ and pyproj MIT; none is included in or linked into RustGIS) | Apache-2.0 |

Expand Down
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 @@ -70,7 +70,7 @@ crs-definitions = { version = "0.6", default-features = false, features = ["proj
# 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 = "759c01645768ee4f531c6866fb2554330eff3f52", default-features = false }
terrio-crs = { git = "https://github.com/opengeos/terrio", rev = "d005ab5367be6d21fcc7aa3366206fb26d5a542a", default-features = false }
base64 = "0.23"
# Deflate for PDF image streams.
miniz_oxide = "0.9"
Expand Down
2 changes: 2 additions & 0 deletions apps/rustgis-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ fn main() -> ExitCode {

/// The command line: loads the plugins, then runs the subcommand the arguments name.
fn cli() -> ExitCode {
// Datum grids: RustGIS's own folder, then those PROJ uses on this computer (#2032 A4).
rustgis_engine::data::raster::crs::use_grid_folders();
let args: Vec<String> = std::env::args().skip(1).collect();
let Some(cmd) = args.first().map(|s| s.as_str()) else { return usage() };
if !args.iter().any(|a| a == "--no-plugins") {
Expand Down
5 changes: 5 additions & 0 deletions apps/rustgis-mobile/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ pub fn pushed(dir: Option<PathBuf>, app: &mut RustGisApp) -> Vec<PathBuf> {
/// thread don't hold it, and `folders` (whether the system gave the app a folder of its own) is
/// said when it is false.
pub fn front_end(folders: bool) -> RustGisApp {
// Datum grids: the app's own folder, where downloaded ones are kept (#2032 A4); a phone has no
// PROJ install to share.
if folders {
rustgis_engine::data::raster::crs::use_grid_folders();
}
let mut app = RustGisApp::with_sample();
if !folders {
app.session.warn(tl!("This device gives RustGIS no folder of its own: settings, the tile cache and recovery copies are off."));
Expand Down
2 changes: 2 additions & 0 deletions apps/rustgis-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ fn load_plugins(py: Python<'_>) -> Vec<String> {

#[pymodule]
fn _rustgis(m: &Bound<'_, PyModule>) -> PyResult<()> {
// Datum grids: RustGIS's own folder, then those PROJ uses on this computer (#2032 A4).
rustgis_engine::data::raster::crs::use_grid_folders();
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
m.add("RustGISError", m.py().get_type::<RustGISError>())?;
m.add_class::<Engine>()?;
Expand Down
2 changes: 2 additions & 0 deletions apps/rustgis/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ fn main() -> eframe::Result {
println!("rustgis {}", env!("CARGO_PKG_VERSION"));
return Ok(());
}
// Datum grids: RustGIS's own folder, then those PROJ uses on this computer (#2032 A4).
rustgis_engine::data::raster::crs::use_grid_folders();
// What an earlier session left, before this one can write a new log.
let crashed = crash::take_previous(prefs::dir());
// Whether it closed cleanly: if not, the Start With project isn't opened (it may be what
Expand Down
Loading
Loading