diff --git a/AGENTS.md b/AGENTS.md index 2dce159a12..fee619b8d7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -156,7 +156,8 @@ It counts only the libraries and programs built for the host, not tests, example built only for other targets, nor a row indexed without reading a field (`features[i]` alone); use the accessors there too. While you work, `cargo xtask changed` runs the same checks on only the packages your branch changes -and those that depend on them (and `test-hygiene` on the whole workspace), or everything when a +and those that depend on them (and `test-hygiene` on the whole workspace, and formatting, `layers` and +`rows` when packages are checked), or everything when a changed file such as `Cargo.lock` is outside every package and nothing includes it. A new dependency must have a licence `deny.toml` allows (CI runs `cargo deny check licenses`); after changing dependencies, run `cargo xtask notices` to refresh the `THIRD-PARTY-LICENSES.txt` files the diff --git a/ROADMAP.md b/ROADMAP.md index 8119ffcdb7..e5cfe9b66b 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -111,10 +111,11 @@ features build on. save, not built in memory first. - A snapshot test of command ids and parameters, so a removal is always deliberate (the project file's JSON Schema, its fixtures and the files past releases saved are checked today). -- A compressed encoding of today's project JSON, read one release before it is written; a - reference system: named connections, copies that remember their source, missing and changed - states, a place for results ([#1653](https://github.com/opengeos/RustGIS/issues/1653)). - _Coordinate first._ +- A compressed encoding of today's project JSON, read one release before it is written. + _Coordinate first_: an issue is needed. +- A system for the data a project refers to: named connections, copies that remember their + source, missing and changed states, a place for results + ([#1653](https://github.com/opengeos/RustGIS/issues/1653)). _Coordinate first._ - What a project holds by default, its own data or links to it ([poll #1660](https://github.com/opengeos/RustGIS/discussions/1660)), and storage that opens a large project without reading it whole. _Decide first._ diff --git a/apps/rustgis-mobile/README.md b/apps/rustgis-mobile/README.md index cb1d1e4a37..77462dd35e 100644 --- a/apps/rustgis-mobile/README.md +++ b/apps/rustgis-mobile/README.md @@ -247,7 +247,7 @@ On the Android 15 emulator (x86_64, software GPU), from this crate as it is: | HTTPS basemap tiles | Yes, with the bundled roots | | Rotation | Yes, without a restart | | Suspend and resume | Yes: the surface is dropped and made again, the session is kept | -| The activity destroyed by the system | The session is lost. winit's event loop can't be made twice in a process, so the app ends its process and the next launch starts afresh; without that, the next launch showed nothing | +| The activity destroyed by the system | The session is lost. winit's event loop can't be made twice in a process, so the app ends its process if the loop returns; destroying the activity alone doesn't make it return, so the process may survive, and a launch in that same process may not start. Once the system ends the process, the next launch starts a new one, and the recovery copies written while editing let it offer a complete copy | | Typing | Key events reach text fields. The soft keyboard itself needs a phone to judge | | Size | 78 MB for arm64 without symbols, 89 MB in the APK for x86_64 | diff --git a/crates/data/src/gml.rs b/crates/data/src/gml.rs index 3eb7c648f5..e99095b83b 100644 --- a/crates/data/src/gml.rs +++ b/crates/data/src/gml.rs @@ -727,7 +727,7 @@ pub fn read(file_name: &str, bytes: &[u8]) -> Result> let what = if unplaced == 1 { "feature has" } else { "features have" }; let system = file_srs.map_or_else(String::new, |(c, _)| format!(" in {}", c.label())); rep.messages.push(format!( - "{}: {unplaced} {what} places{system} that can't be given in longitude/latitude; they are left out of the shapes", + "{}: {unplaced} {what} places{system} that can't be given in longitude/latitude; they are kept as missing coordinates and don't draw", ds.name )); } diff --git a/crates/data/src/publish.rs b/crates/data/src/publish.rs index 26265ab777..27bb5a6ecc 100644 --- a/crates/data/src/publish.rs +++ b/crates/data/src/publish.rs @@ -432,7 +432,7 @@ fn in_file<'a>(ds: &'a Dataset, crs: Option, as_held: Option<(&Dataset, &Da crate::progress::check()?; if f.geometry.is_none() && r.geometry.is_some() { return Err(DataError::Format(format!( - "source shape {} couldn't be converted to longitude/latitude, so its native geometry can't be matched safely; check the source projection and add the file again; nothing was written", + "source shape {} couldn't be converted from the source projection when it was read, so its native geometry can't be matched safely; check the source projection and add the file again; nothing was written", i + 1 ))); } diff --git a/crates/engine/src/cmd/design.rs b/crates/engine/src/cmd/design.rs index 482a532ef9..9354ee0025 100644 --- a/crates/engine/src/cmd/design.rs +++ b/crates/engine/src/cmd/design.rs @@ -2292,6 +2292,8 @@ struct TopologyInput { data: rustgis_data::Dataset, query: Option, by: Option, + /// The covering layer's name on the map, which its data's own name may not be. + by_layer: String, } /// Captures the rules and their raw inputs; a rule whose layer is gone is left out, as before. @@ -2304,11 +2306,18 @@ fn topology_checks(s: &Session) -> Vec { // A covering layer that is gone leaves the rule with nothing to check (its primary // latitudes are still checked). Its whole resident dataset supplies coverage, // independently of selection, definition query, display filters and time window. - let by = match &rule { - TopologyRule::MustBeCoveredBy { by, .. } => s.map().layer_by_name(by).map(|b| b.dataset.clone()), - _ => None, + let (by, by_layer) = match &rule { + TopologyRule::MustBeCoveredBy { by, .. } => (s.map().layer_by_name(by).map(|b| b.dataset.clone()), by.clone()), + _ => (None, String::new()), }; - inputs.push(TopologyInput { rule, layer: l.name.clone(), data: l.dataset.clone(), query: l.definition_query.clone(), by }); + inputs.push(TopologyInput { + rule, + layer: l.name.clone(), + data: l.dataset.clone(), + query: l.definition_query.clone(), + by, + by_layer, + }); } inputs } @@ -2377,15 +2386,19 @@ fn check_topology(inputs: &[TopologyInput], tol: f64) -> Result 0, "the overlap is found"); } + /// A held layer with a place that can't be given in longitude/latitude is refused, naming + /// the layer once; a covering layer's is named as that layer, not the one checked. + #[test] + fn a_topology_refusal_names_its_layer_once() { + let held = |name: &str, kind: GeometryType, far: bool| { + let mut ds = rustgis_data::Dataset::new(name, kind, vec![]); + ds.hold_in(rustgis_data::raster::Crs::Epsg(32632)).unwrap(); + // Far beyond any place UTM 32N holds, or in it. + let (x, y) = if far { (1e12, 1e12) } else { (500_000.0, 5_400_000.0) }; + let ring = vec![Coord::new(x, y), Coord::new(x + 10.0, y), Coord::new(x + 10.0, y + 10.0), Coord::new(x, y)]; + let shape = match kind { + GeometryType::Polygon => Geometry::Polygon(vec![vec![ring]]), + GeometryType::Point => Geometry::Point(Coord::new(x, y)), + _ => Geometry::Line(vec![ring]), + }; + ds.push(Some(shape), vec![]); + ds + }; + let mut s = Session::new(crate::Project::default()); + s.map_mut().add_dataset(held("Parcels", GeometryType::Polyline, true)); + s.run("topology.rules", &json!({"add": {"rule": "mustNotHaveDangles", "layer": "Parcels"}})).unwrap(); + let Err(e) = check_topology(&topology_checks(&s), 1.0) else { panic!("the check is refused") }; + assert!(e.starts_with("Parcels: feature"), "{e}"); + assert_eq!(e.matches("Parcels").count(), 1, "{e}"); + // A checked layer whose map name isn't its data's (a name taken on a clash) is named as + // the map has it, once. + s.map_mut().layers.iter_mut().find(|l| l.name == "Parcels").unwrap().name = "Parcels (2)".into(); + s.map_mut().editing.topology = vec![TopologyRule::MustNotHaveDangles { layer: "Parcels (2)".into() }]; + let Err(e) = check_topology(&topology_checks(&s), 1.0) else { panic!("the check is refused") }; + assert!(e.starts_with("Parcels (2): feature"), "{e}"); + assert_eq!(e.matches("Parcels").count(), 1, "{e}"); + + let mut s = Session::new(crate::Project::default()); + s.map_mut().add_dataset(held("Cities", GeometryType::Point, false)); + s.map_mut().add_dataset(held("Countries", GeometryType::Polygon, true)); + s.run("topology.rules", &json!({"add": {"rule": "mustBeCoveredBy", "layer": "Cities", "by": "Countries"}})).unwrap(); + let Err(e) = check_topology(&topology_checks(&s), 1.0) else { panic!("the check is refused") }; + assert!(e.starts_with("Countries: feature"), "{e}"); + assert!(!e.contains("Cities"), "{e}"); + // A covering layer whose map name isn't its data's (a name taken on a clash) is named as + // the map has it. + s.map_mut().layers.iter_mut().find(|l| l.name == "Countries").unwrap().name = "Borders".into(); + s.map_mut().editing.topology = vec![TopologyRule::MustBeCoveredBy { layer: "Cities".into(), by: "Borders".into() }]; + let Err(e) = check_topology(&topology_checks(&s), 1.0) else { panic!("the check is refused") }; + assert!(e.starts_with("Borders: feature"), "{e}"); + assert_eq!(e.matches("Countries").count() + e.matches("Borders").count(), 1, "{e}"); + assert!(!e.contains("Cities"), "{e}"); + } + #[test] fn a_center_is_found_within_the_commands_budget() { // A line at 89.9°N whose ten edges each span 170° of longitude: 340 half-degree stretches diff --git a/crates/engine/src/cmd/field.rs b/crates/engine/src/cmd/field.rs index 750ec1fbb4..07710cfe10 100644 --- a/crates/engine/src/cmd/field.rs +++ b/crates/engine/src/cmd/field.rs @@ -29,7 +29,7 @@ const BASEMAPS: &str = "basemaps"; /// The folder of a field package that holds its features' photos. const PHOTOS: &str = "photos"; /// What an offline area's map is called after: ` (offline)`. -pub(crate) const OFFLINE: &str = " (offline)"; +pub const OFFLINE: &str = " (offline)"; /// The most bytes read from one field package's entries when it is opened. const MOST_UNPACKED: usize = rustgis_data::zip::MAX_TOTAL; /// Optional information for the crew. Older readers extract it like any other companion file. diff --git a/crates/engine/tests/integration/project_save_roundtrip.rs b/crates/engine/tests/integration/project_save_roundtrip.rs index e4b7f3e838..606e114db9 100644 --- a/crates/engine/tests/integration/project_save_roundtrip.rs +++ b/crates/engine/tests/integration/project_save_roundtrip.rs @@ -10,7 +10,7 @@ //! changes nothing. //! //! Pull requests run a fixed seed; the nightly a new one with more cases. To run a seed again, or -//! deeper: `PROPERTY_SEED=7 PROPERTY_CASES=2000 cargo test -p rustgis-engine --test project_save_roundtrip`. +//! deeper: `PROPERTY_SEED=7 PROPERTY_CASES=2000 cargo test -p rustgis-engine --test integration project_save_roundtrip`. use proptest::prelude::*; use proptest::test_runner::{Config, RngAlgorithm, TestCaseError, TestRng, TestRunner}; use rustgis_engine::{ diff --git a/crates/geom/src/utm.rs b/crates/geom/src/utm.rs index db997d70ab..dd3574619e 100644 --- a/crates/geom/src/utm.rs +++ b/crates/geom/src/utm.rs @@ -840,7 +840,7 @@ mod tests { /// GeographicLib's GeoConvert documentation converts 33.3° N 44.4° E (Baghdad) to /// `38n 444140.54 3684706.36` and MGRS `38SMB4414084706` /// (https://geographiclib.sourceforge.io/C++/doc/GeoConvert.1.html). Also checked against - /// terrio-crs in `crates/data/tests/utm_vs_proj.rs`. + /// terrio-crs in `crates/data/tests/integration/utm_vs_proj.rs`. #[test] fn published_reference_point() { let u = to_utm(c(44.4, 33.3)).unwrap(); diff --git a/crates/plugins/src/panel.rs b/crates/plugins/src/panel.rs index 5a8f0ffaa6..39e1a79958 100644 --- a/crates/plugins/src/panel.rs +++ b/crates/plugins/src/panel.rs @@ -312,7 +312,7 @@ impl PanelDecl { } if options.len() != item.options.len() { return Err(what(&format!( - "a dropdown's options are at most {MAX_CHOICES} objects, each with a unique id of 1 to {MAX_TREE_ID} characters" + "options (dropdown or tab row) are at most {MAX_CHOICES} objects, each with a unique id of 1 to {MAX_TREE_ID} characters" ))); } if kind != "text" && !item.text.is_empty() { diff --git a/crates/ui-egui/src/pluginpanel.rs b/crates/ui-egui/src/pluginpanel.rs index 753f9b6e21..b7b9a1d0c1 100644 --- a/crates/ui-egui/src/pluginpanel.rs +++ b/crates/ui-egui/src/pluginpanel.rs @@ -1020,12 +1020,14 @@ fn tabs(app: &mut RustGisApp, ui: &mut Ui, pid: &str, item: &PanelItemDecl, stat } } -/// The weekday of a date, 0 for Monday. +/// The weekday of a date, 0 for Monday. A month outside 1 to 12 (callers pass only those) gives +/// some weekday rather than failing. fn weekday(y: i32, m: u32, d: u32) -> u32 { // Sakamoto's method, which counts from Sunday. - const T: [i32; 12] = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]; - let y = if m < 3 { y - 1 } else { y }; - let sunday = (y + y / 4 - y / 100 + y / 400 + T[(m - 1) as usize] + d as i32).rem_euclid(7) as u32; + const T: [i64; 12] = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]; + let y = i64::from(y) - i64::from(m < 3); + let offset = m.checked_sub(1).and_then(|i| T.get(i as usize)).copied().unwrap_or(0); + let sunday = (y + y / 4 - y / 100 + y / 400 + offset + i64::from(d)).rem_euclid(7) as u32; (sunday + 6) % 7 } @@ -1296,6 +1298,10 @@ mod tests { assert_eq!(weekday(2023, 4, 1), 5); assert_eq!(weekday(2024, 2, 29), 3); assert_eq!(weekday(2000, 1, 1), 5); + // A month outside 1 to 12, or a far year or day, gives a weekday rather than failing. + for (y, m, d) in [(2024, 0, 1), (2024, 13, 1), (i32::MAX, 2, u32::MAX), (i32::MIN, 0, 0)] { + assert!(weekday(y, m, d) < 7); + } assert_eq!(month_step(2023, 1, -1), (2022, 12)); assert_eq!(month_step(2023, 12, 1), (2024, 1)); assert_eq!(month_step(9999, 12, 1), (9999, 12), "kept within years 1 to 9999"); diff --git a/crates/ui-touch/src/lib.rs b/crates/ui-touch/src/lib.rs index c3c2b8c614..3b182334fe 100644 --- a/crates/ui-touch/src/lib.rs +++ b/crates/ui-touch/src/lib.rs @@ -278,7 +278,7 @@ fn can_send_field_package(app: &RustGisApp) -> bool { } // An area ID with no area (a damaged file) is no copy to send. let area = map.offline_area_id.as_deref().map(|id| project.offline_areas.iter().any(|a| a.id == id)); - area.unwrap_or_else(|| map.name.ends_with(" (offline)")) + area.unwrap_or_else(|| map.name.ends_with(rustgis_ui_egui::rustgis_engine::cmd::field::OFFLINE)) } /// Draws where the device is: a dot, in a ring as wide as the position is good to. diff --git a/docs/installation.md b/docs/installation.md index 93b7a96b06..692cdef939 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -157,7 +157,9 @@ RustGIS also runs in the browser, compiled to WebAssembly: open after it, and **Save** downloads it under that name again. The browser doesn't tell RustGIS whether it saved a download (its save prompt can be cancelled), so **Save** keeps any unsaved changes, and **Save As** to a different name makes the project unsaved. Closing or leaving - the tab asks first while there are unsaved changes; an unchanged project stays clean. + the tab may ask first while there are unsaved changes, but browsers don't promise to (mobile + browsers often skip it when a tab is closed from the tab switcher), so check that the saved + file downloaded before you leave; an unchanged project stays clean. - The interface uses the built-in font, because a web page can't read installed fonts. Choosing Chinese, Japanese, Korean or Persian downloads a font for that script. - Process plugins (including Python plugins), and the formats read through GDAL or DuckDB, diff --git a/docs/mcp.md b/docs/mcp.md index 6161b1c969..f3ce3822ec 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -338,7 +338,7 @@ These behavioral tests in `crates/assistant/src/relay.rs` check the requirements | Tool | What it does | | --- | --- | -| `list_layers` | The whole project in one call: path and unsaved changes, the view (centre, longitude/latitude extent, scale, projection), the active layer, layers in table-of-contents order (group, type, source, extent, feature count, selection, definition query, renderer, labels, fields, visibility, transparency), web tile layers, basemap, tables and layouts with their page size in millimetres and their map frames. `name_filter` keeps the layers and tables whose name holds it; `include_fields: false` leaves fields out | +| `list_layers` | The whole project in one call: path and unsaved changes, the view (centre, longitude/latitude extent, scale, projection), the active layer, layers in table-of-contents order (group, type, source, extent (rounded outwards to six decimals, so it still holds every coordinate), feature count, selection, definition query, renderer, labels, fields, visibility, transparency), web tile layers, basemap, tables and layouts with their page size in millimetres and their map frames. `name_filter` keeps the layers and tables whose name holds it; `include_fields: false` leaves fields out | | `view_map` | The map as a PNG image at the current view; `width` and `height` default to 1024 × 640, each clamped to 64–2048 pixels. A picture over 3.75 MiB (a satellite basemap near 2048 pixels) is drawn again smaller, and its caption gives the size drawn and the size asked. `layout` (a layout's name) draws its page instead, fitted to `width` (and `height` when given); `region` draws part of either at full detail: `[x, y, w, h]` in mm on a layout (up to 600 dpi), `[west, south, east, north]` in degrees on the map. What drawing it said (texts cut off, layers without their cast shadows) follows the caption | | `snapshot` | The map as a PNG with JSON metadata: `mode`, `width`, `height`, `extent` (longitude/latitude), `center`, `scale`, `projection`, `render_settled`, `saved` and `note`. `mode: "screen"` captures the RustGIS window through the relay, once the map has finished drawing or after `wait_s` seconds (default 5, clamped to 0–30); `overlays: false` leaves out the map's controls, scale bar, north arrow and sketches. `mode: "render"` draws offscreen at `max_width` (default 1024, clamped to 64–2048 pixels); height follows the view's shape, with each side capped at 2048. It works while the window is hidden. `mode: "auto"` (default) takes the screen when the map is on it. Unavailable screen captures fall back to render. `save_path` also writes the PNG to a file, which needs file access | | `search_commands` | Finds RustGIS commands by words: their ids, ribbon locations and parameters | diff --git a/docs/plugins.md b/docs/plugins.md index 400a8e3832..54837c8edb 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -646,7 +646,7 @@ Inside a request, `host::call(op, params)` sends one of these to RustGIS: | Request | Answer | |---|---| | `host.info` | `{rustgis, abi, plugin, permissions}`: version, ABI, plugin id and permissions | -| `host.layers` | `[{id, name, raster, visible, geometry, features, selected, active, extent, transparency, group, crs, fields: [{name, type}]}]`, top first: `crs` is the layer's own coordinate system, `"EPSG:32637"` (its WKT when it has no EPSG code, else its PROJ definition; `null` only for a raster not yet read), the one `share.exportLayer` keeps. A vector layer that carries no coordinate system is reported as `"EPSG:4326"`: RustGIS assumes WGS 84 for it, as it does everywhere, so that is a fallback, not a system the file declared; `extent` is `[west, south, east, north]` in longitude/latitude (`null` when empty or a raster not yet read), `transparency` the layer's own, 0 (opaque) to 100 (its groups' transparency applies on top), `group` the name of the group it is in or `null`. The web tile layers, groups, tables and layouts (with their page size) are in `info.project` | +| `host.layers` | `[{id, name, raster, visible, geometry, features, selected, active, extent, transparency, group, crs, fields: [{name, type}]}]`, top first: `crs` is the layer's own coordinate system, `"EPSG:32637"` (its WKT when it has no EPSG code, else its PROJ definition; `null` only for a raster not yet read), the one `share.exportLayer` keeps. A vector layer that carries no coordinate system is reported as `"EPSG:4326"`: RustGIS assumes WGS 84 for it, as it does everywhere, so that is a fallback, not a system the file declared; `extent` is `[west, south, east, north]` in longitude/latitude, rounded outwards to six decimals so it still holds every coordinate (`null` when empty or a raster not yet read), `transparency` the layer's own, 0 (opaque) to 100 (its groups' transparency applies on top), `group` the name of the group it is in or `null`. The web tile layers, groups, tables and layouts (with their page size) are in `info.project` | | `host.features` `{layer, selected?, limit?, crs?}` | the layer's features as GeoJSON; each feature has its `row`. With `crs` omitted, null or empty, coordinates retain the default longitude/latitude response without a `crs` member: WGS 84 for Earth layers, but the source body’s degrees for planetary layers. An explicit `"EPSG:4326"` (or `"4326"`), or `"layer"` resolving to WGS 84, also uses that response without a `crs` member. This preserves the existing numeric coordinates for planetary layers; it does not convert them to Earth’s WGS 84. Other `crs` values ask for: `"layer"` (the layer's own, as `host.layers` gives it: metres for a UTM layer), `"map"` (the map's projection; Web Mercator on the globe) or an EPSG code (`"EPSG:32637"`, or `"32637"`; WKT and PROJ text are refused, so a plugin can't add coordinate systems to the session). A non-default answer then has a GeoJSON `crs` member (`{"type": "name", "properties": {"name": "EPSG:32637"}}`), which `host.addLayer` reads back. A `crs` that is unknown, not text (except null), an unsupported form, has no EPSG code (a layer or map in a custom system), is geocentric, belongs to another body than the layer, or can't hold a feature (outside its area, or beyond Web Mercator's latitude of 85.05°) is an error starting with `crs:` (naming the feature count where it applies); nothing is dropped silently or moved. The request runs on the calling thread (the window's, in the app) like every host request | | `host.view` | `{center: [lon, lat], scale, projection, bearing, pitch}` (bearing and pitch in degrees, 0 for a flat north-up map) | | `host.notify` `{text, error?}` | shows a message in the status bar | diff --git a/docs/privacy.md b/docs/privacy.md index e1a8dcf1b0..396762c1ec 100644 --- a/docs/privacy.md +++ b/docs/privacy.md @@ -200,5 +200,5 @@ words of a site search. You can block analytics with a content blocker or your browser's tracking protection; the sites work normally without them. Analytics run only on the sites we host: the measurement ID is added -when those sites are deployed, so the desktop app, the command line and any copy you build -yourself never load them. +when those sites are deployed, so the desktop app, the command line, the Android and iOS apps +and any copy you build yourself never load them. diff --git a/docs/user-guide/analysis.md b/docs/user-guide/analysis.md index fa78003363..440b83766a 100644 --- a/docs/user-guide/analysis.md +++ b/docs/user-guide/analysis.md @@ -1649,9 +1649,10 @@ cores; `gp.env` returns the threads and cores as `limits.threads` and `limits.co runs on one thread. `gp.env` also returns the memory limits on this computer (`limits`). On the desktop they follow the -computer's memory, or a control-group limit on Linux (a container's, or a service's such as systemd's `MemoryMax`) when it is lower: each plans for a quarter of it, never -below the web app's fixed limits and never above a ceiling. `limits.memorySource` says what they -follow: `computer`, `container` (such a limit, lower than the computer's memory), +computer's memory, or on Linux the lowest memory limit of the control groups RustGIS runs in, its +own and those above it (set by a container runtime, or by systemd's `MemoryMax` for a service), +when it is lower: each plans for a quarter of it, never below the web app's fixed limits and never +above a ceiling. `limits.memorySource` says what they follow: `computer`, `container` (such a limit, lower than the computer's memory), `override` or `unknown`. For tests, or to reproduce a smaller computer, set the environment variable `RUSTGIS_MEMORY_BYTES` to the memory in bytes (such as `8589934592` for 8 GiB) before starting RustGIS: it replaces the memory read from the computer and any container limit, and the diff --git a/docs/user-guide/data.md b/docs/user-guide/data.md index 357bae2236..97cf491880 100644 --- a/docs/user-guide/data.md +++ b/docs/user-guide/data.md @@ -1780,8 +1780,10 @@ rotation, pixel- or node-registered) reads no coordinates, and the transform win the store also holds. It is the variable's own, or that of the nearest group above it (up to 64 levels up) that gives one, taken with that group's `spatial:shape`, which must be the variable's map's. Its map dimensions are those `spatial:dimensions` names. `proj:code`, `proj:wkt2` or `proj:epsg` give -the coordinate system, after the variable's own attributes and its grid mapping, and before a -`spatial_ref` or `crs` array beside it. A variable opened by its own address doesn't see its +the coordinate system. The first of these that gives one is used: the variable's own attributes +(its own `proj:` keys among them), then its grid mapping's, then the `proj:wkt2`, `proj:code` or +`proj:epsg` of the nearest group above it that sets any of them (only when the variable sets none: +a value that can't be read, on the variable or a group, isn't passed over for one further up), then a `spatial_ref` or `crs` array beside it. A variable opened by its own address doesn't see its groups' attributes: open the store's address with `"variable"` instead. A web store whose root lists no arrays (a Zarr 3 root `zarr.json` with no consolidated metadata, or a Zarr 2 `.zgroup` with no `.zmetadata`) needs `"variable"`: its array, the groups above it, diff --git a/docs/user-guide/index.md b/docs/user-guide/index.md index 55cdee89fa..3434b71173 100644 --- a/docs/user-guide/index.md +++ b/docs/user-guide/index.md @@ -102,7 +102,7 @@ This guide walks through RustGIS by task. Each page covers one part of the app: to step through decimal degrees, DMS, UTM and MGRS; see [Coordinate readouts](maps.md#coordinate-readouts)), the coordinate system (click it to change the projection), the selection count (with a button to clear it), the latest notice (click to open - **Diagnostics**), a **Diagnostics** button, the last draw time, the frame rate and a **GPU**/**CPU** + **Messages**), a **Messages** button, the last draw time, the frame rate and a **GPU**/**CPU** renderer switch. While agents control the desktop app, it also shows the MCP relay or file bridge. **Command Search** (++ctrl+k++, or the box at the top right) finds commands and geoprocessing diff --git a/docs/user-guide/shapefile-encoding.md b/docs/user-guide/shapefile-encoding.md index 6d2e897a07..450351a72d 100644 --- a/docs/user-guide/shapefile-encoding.md +++ b/docs/user-guide/shapefile-encoding.md @@ -83,7 +83,7 @@ tables or system programs are needed for the supported decoders above. - [`yore`'s `CodePage` implementations](https://docs.rs/yore/1.4.0/yore/trait.CodePage.html#implementors) list the available legacy decoders and lossy decoding API. -`crates/data/tests/shapefile_encoding.rs` specifies fixed bytes and Unicode expectations +`crates/data/tests/integration/shapefile_encoding.rs` specifies fixed bytes and Unicode expectations independently of RustGIS's mapping. Its matrix covers every marker above, names and values, ZIP and loose-file imports, a genuinely sampled streamed read, a complete read, and ordered chunk traversal. It also checks `.cpg` precedence, fallback diagnostics, the notices for text diff --git a/xtask/src/changed.rs b/xtask/src/changed.rs index 6ac5e1565c..e4a259195e 100644 --- a/xtask/src/changed.rs +++ b/xtask/src/changed.rs @@ -13,6 +13,10 @@ //! - Every package that depends on a changed one, as a dependency of any kind, is checked too. So //! a changed package gets the features every workspace package turns on in it; a feature that a //! package left out turns on in an outside crate isn't, which can make a result differ from CI's. +//! - `test-hygiene` always looks at the whole workspace. When Rust packages are checked, +//! formatting, `layers` and `rows` look at the whole workspace too, as a change anywhere can +//! break them; when nothing changed, or only the non-code files `is_non_code` names, they +//! don't run. //! //! `--list` prints the packages it would check, one a line, or `all`, or `none`, and checks nothing.