Registry Mirror
Skip to content

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/pull_request_template.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
<!-- How did you verify it? e.g. `cargo xtask ci`, new tests, a `ui_shot` screenshot, manual steps. -->
88

9+
## UI evidence
10+
11+
<!-- For substantial visible UI changes, include screenshots (before/after where useful).
12+
Omit this section if there is no visible UI change. -->
13+
914
## Related issue
1015

1116
<!-- e.g. Closes #123, or Part of #456. -->

‎.github/workflows/claude-autofix.yml‎

Lines changed: 361 additions & 91 deletions
Large diffs are not rendered by default.

‎AGENTS.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,7 @@ build on the pull request.
7171
## Looking at the app
7272
- `cargo run --release -p rustgis` (opens the World Atlas sample).
7373
- Headless screenshots: `cargo run --release -p rustgis-ui-egui --example ui_shot -- script.jsonl`
74-
(see the example header). For UI work, look at the PNG.
74+
(see the example header). For UI work, render the actual changed UI and look at the PNG.
75+
For substantial visible changes, include screenshots in the PR (before/after where useful);
76+
see [attachment guidance](docs/contributing.md#documentation).
7577
- CLI: `rustgis-cli run --sample --cmd 'gp.run={"tool":"buffer","params":{"input":"Cities","distance":100}}' --cmd 'share.exportMap={"path":"out.png"}'`.

‎CITATION.cff‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ authors:
1919
family-names: Fitzgerald
2020
- given-names: Dominik
2121
family-names: Strebel
22+
orcid: "https://orcid.org/0000-0002-3529-1798"
2223
version: 0.4.0
2324
date-released: 2026-10-25
2425
doi: "10.5281/zenodo.23633281"

‎Cargo.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎GEOLIBRE_PARITY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ _GeoLibre: docs/features.md › Attribute data and expressions; docs/arcgis-edit
166166
_GeoLibre: docs/features.md › Processing and analysis; docs/user-guide/processing.md,
167167
model-builder.md, segmentation.md, obia.md_
168168

169-
- [ ] **Spatial join, intersect, union**. Partial: spatial join, clip, erase and intersect are
170-
built in; union, identity and near are missing (_Roadmap: solid ground_).
169+
- [ ] **Spatial join, intersect, union**. Partial: spatial join, clip, erase, intersect, identity
170+
and union are built in; near is missing (_Roadmap: solid ground_).
171171
- [ ] **More built-in vector tools**: attribute join, merge, extract vertices, points along lines,
172172
fix/check geometry, random extract, buffer options. Partial (_Roadmap: solid ground_).
173173
- [ ] **Routing services**: isochrones, service areas, OD matrix, multi-stop routing,

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Every screenshot is RustGIS itself, rendered offscreen by `cargo run -p rustgis-
9999
| **Web tiles** | XYZ/TMS/WMS raster tiles, Mapbox Vector Tiles and MapLibre styles (sprites, patterns, expressions), cached and fetched in the background |
100100
| **Cartography** | Single symbol, unique values, graduated colours, proportional symbols; label classes with SQL queries, straight and curved line placement, installed font families, scale ranges and annotation; stacked and dashed line strokes, symbol levels, reference scales and polygons without fill; masking, display filters, aggregation bins, 2.5D extrusion; graphics and dynamic text |
101101
| **Editing** | Create, move, rotate, scale, merge, split and explode features; snapping, templates, elevation, traverse, topology rules; domains, subtypes, attribute rules, relationships, archiving; undo for everything |
102-
| **Analysis** | Selection by attributes (SQL) and location; Buffer, Clip, Erase, Intersect, Dissolve, Summarize Within, Summary Statistics, Spatial Join, Zonal Statistics, A5 grids and a geometry calculator; viewshed, line of sight, IDW, ordinary kriging, shortest path, suitability modelling; ModelBuilder on a node canvas and scripts with command, parameter and value completion; 1,000+ [GeoLibre](https://github.com/opengeos/geolibre-rust) and Whitebox raster, vector, LiDAR, hydrology and terrain tools |
102+
| **Analysis** | Selection by attributes (SQL) and location; Buffer, Clip, Erase, Intersect, Identity, Union, Dissolve, Summarize Within, Summary Statistics, Spatial Join, Zonal Statistics, A5 grids and a geometry calculator; viewshed, line of sight, IDW, ordinary kriging, shortest path, suitability modelling; ModelBuilder on a node canvas and scripts with command, parameter and value completion; 1,000+ [GeoLibre](https://github.com/opengeos/geolibre-rust) and Whitebox raster, vector, LiDAR, hydrology and terrain tools |
103103
| **Imagery** | Ortho and reality mapping, pixel classification (k-means, minimum distance, a trainable neural network), mensuration, hosted imagery tiles |
104104
| **Layouts and reports** | Page layouts with map frames, legends, scale bars, grids and map series; publication sheets and figures in one command, format panes, guides, snapping and element locks; reports with groups, statistics, charts and subreports; presentations (HTML slideshow, PDF); notebooks (Jupyter in and out) |
105105
| **Sharing** | PNG export at any DPI; PDF; web map pages, OGC API Features collections, MapLibre styles, glTF scenes, locators; project, map and mobile map packages; offline areas with sync |
@@ -199,7 +199,7 @@ If you use RustGIS in your work, please cite it. RustGIS is archived on [Zenodo]
199199

200200
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.23633281.svg)](https://doi.org/10.5281/zenodo.23633281)
201201

202-
> Wu, Q., Rincón Albarracín, J. G., Filho, E., Hofbauer, D., & Fitzgerald, M. (2026). RustGIS: A fast, free and open-source GIS in pure Rust for mapping, analyzing and sharing geospatial data. Zenodo. <https://doi.org/10.5281/zenodo.23633281>
202+
> Wu, Q., Rincón Albarracín, J. G., Filho, E., Hofbauer, D., Fitzgerald, M., & Strebel, D. (2026). RustGIS: A fast, free and open-source GIS in pure Rust for mapping, analyzing and sharing geospatial data. Zenodo. <https://doi.org/10.5281/zenodo.23633281>
203203
204204
You can also use GitHub's **"Cite this repository"** button (which reads [`CITATION.cff`](CITATION.cff)) to copy a ready-made APA or BibTeX entry. See the [How to Cite](https://rustgis.app/citation/) page for more formats.
205205

‎ROADMAP.md‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ Correct, robust and recoverable, with the foundations other themes stand on.
6363
administrator can fix for a managed install (no AI Assistant, plugins or web services).
6464
- Extend the OS keychain secret store to service connections (database passwords, S3 keys,
6565
AI provider keys and the ChatGPT sign-in's tokens are already kept there).
66-
- Overlay tools beside Clip, Erase and Intersect: union, identity and near
67-
([#959](https://github.com/opengeos/RustGIS/issues/959)).
66+
- A Near tool beside the overlay tools ([#959](https://github.com/opengeos/RustGIS/issues/959)).
6867
- Spatial Join by distance, closest, centre in and largest overlap, with merge rules (sum, mean,
6968
first…) for one-to-one joins ([#851](https://github.com/opengeos/RustGIS/issues/851)).
7069
- Vector tools, each writing a new layer: join field (a one-off attribute join), merge (append
@@ -100,9 +99,9 @@ And alongside it:
10099
### Data at the source
101100
- Write edits back to GeoPackage and PostGIS (edits stay in the project today). _Coordinate
102101
first._
103-
- Open GeoLibre `.geolibre` projects as maps, the way supported QGIS projects open
104-
([#962](https://github.com/opengeos/RustGIS/issues/962)). GeoLibre opening
105-
`.rgis` projects comes later, once RustGIS's project format and supported data types settle.
102+
- GeoLibre opening RustGIS `.rgis` projects, once RustGIS's project format and supported
103+
data types settle. RustGIS imports GeoLibre projects; combined colour and size rendering
104+
is tracked in [#1017](https://github.com/opengeos/RustGIS/issues/1017).
106105
- A date and date-time field type, read and written as dates (they are text today)
107106
([#853](https://github.com/opengeos/RustGIS/issues/853)). _Coordinate first_ (it changes
108107
`FieldType`).
@@ -220,11 +219,11 @@ Open questions rather than plans; discuss before building.
220219
templates, elevation, topology; domains, subtypes, attribute rules, contingent values,
221220
relationships, archiving.
222221
- Analysis: selection by attributes and location; polygon, lasso and radius on the map; overlay
223-
(clip, erase, intersect), proximity (buffer) and summary tools, spatial join, zonal statistics,
224-
A5 grids, kriging and Calculate Geometry with metric or imperial units; guided workflows
225-
(viewshed, line of sight, IDW, shortest path, suitability); ModelBuilder on a node canvas,
226-
scripts with command, parameter and value completion, and history copied as code; the GeoLibre
227-
and Whitebox suite (1,000+ tools) natively and in the browser.
222+
(clip, erase, intersect, identity, union), proximity (buffer) and summary tools, spatial join,
223+
zonal statistics, A5 grids, kriging and Calculate Geometry with metric or imperial units; guided
224+
workflows (viewshed, line of sight, IDW, shortest path, suitability); ModelBuilder on a node
225+
canvas, scripts with command, parameter and value completion, and history copied as code; the
226+
GeoLibre and Whitebox suite (1,000+ tools) natively and in the browser.
228227
- Layouts (map frames, surrounds, map series, publication sheets and figures in one command,
229228
format panes, guides, snapping, element locking and PDF), reports, presentations and
230229
notebooks; the web app embeddable in a page (`?embed`).

‎apps/rustgis-web/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ rfd = { workspace = true, features = ["file-handle-inner"] }
2525
wasm-bindgen = "0.2"
2626
wasm-bindgen-futures = "0.4"
2727
js-sys = "0.3"
28-
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlElement", "Node", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "File", "Url", "Location", "Event", "EventTarget", "KeyboardEvent", "MessageEvent", "BeforeUnloadEvent", "Storage", "Crypto", "RequestCredentials", "ReferrerPolicy", "Response", "Headers", "AbortController", "AbortSignal", "RequestInit", "RequestRedirect", "ReadableStream", "ReadableStreamDefaultReader", "ImageBitmap", "ImageBitmapOptions", "PremultiplyAlpha", "ColorSpaceConversion", "OffscreenCanvas", "OffscreenCanvasRenderingContext2d", "ImageData"] }
28+
web-sys = { version = "0.3", features = ["Window", "Navigator", "Clipboard", "Document", "Element", "HtmlElement", "Node", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "File", "Url", "Location", "Event", "EventTarget", "KeyboardEvent", "MessageEvent", "BeforeUnloadEvent", "Storage", "Crypto", "RequestCredentials", "ReferrerPolicy", "Response", "Headers", "AbortController", "AbortSignal", "RequestInit", "RequestRedirect", "ReadableStream", "ReadableStreamDefaultReader", "ImageBitmap", "ImageBitmapOptions", "PremultiplyAlpha", "ColorSpaceConversion", "OffscreenCanvas", "OffscreenCanvasRenderingContext2d", "ImageData"] }

‎apps/rustgis-web/src/web.rs‎

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::cell::{Cell, RefCell};
55
use std::collections::HashMap;
66
use std::rc::Rc;
77

8-
use rustgis_ui_egui::{Inbox, RustGisApp, Services};
8+
use rustgis_ui_egui::{Inbox, RustGisApp, Services, Slot};
99

1010
use crate::parts::Notes;
1111
use wasm_bindgen::JsCast as _;
@@ -777,6 +777,16 @@ async fn http(
777777
Ok(rustgis_ui_egui::rustgis_assistant::HttpResponse { status, body: bytes.to_vec(), headers })
778778
}
779779

780+
/// The browser's clipboard, where a page may read it: a secure context (HTTPS, or this computer)
781+
/// whose `navigator.clipboard` has `readText`.
782+
fn clipboard() -> Option<web_sys::Clipboard> {
783+
let window = web_sys::window().filter(web_sys::Window::is_secure_context)?;
784+
let navigator = window.navigator();
785+
let clipboard = js_sys::Reflect::get(&navigator, &"clipboard".into()).ok().filter(|c| !c.is_null_or_undefined())?;
786+
js_sys::Reflect::get(&clipboard, &"readText".into()).ok().filter(wasm_bindgen::JsValue::is_function)?;
787+
Some(navigator.clipboard())
788+
}
789+
780790
/// The browser's services. Embedded, settings live in memory for the visit: the page that embeds
781791
/// the app must not read what the user saved on the site.
782792
fn services(inbox: Inbox, font_inbox: Inbox, notes: Notes, ctx: egui::Context, embedded: bool) -> Services {
@@ -827,7 +837,24 @@ fn services(inbox: Inbox, font_inbox: Inbox, notes: Notes, ctx: egui::Context, e
827837
)
828838
};
829839
let arcgis_ctx = ctx.clone();
840+
let clipboard_ctx = ctx.clone();
830841
Services {
842+
// A text field's Paste: the page reads the clipboard (Firefox and Safari show a Paste
843+
// button to confirm, Chrome asks once); only over HTTPS, where the browser offers it.
844+
read_clipboard: clipboard().map(|clipboard| -> Box<dyn Fn(Slot<Result<String, String>>)> {
845+
Box::new(move |slot| {
846+
let (clipboard, ctx) = (clipboard.clone(), clipboard_ctx.clone());
847+
wasm_bindgen_futures::spawn_local(async move {
848+
let read = wasm_bindgen_futures::JsFuture::from(clipboard.read_text()).await;
849+
let text = read.map(|v| v.as_string().unwrap_or_default()).map_err(|e| {
850+
// A refusal is a DOMException: its name says why (NotAllowedError).
851+
js_sys::Reflect::get(&e, &"name".into()).ok().and_then(|n| n.as_string()).unwrap_or_else(|| format!("{e:?}"))
852+
});
853+
*slot.lock().unwrap_or_else(|e| e.into_inner()) = Some(text);
854+
ctx.request_repaint();
855+
});
856+
})
857+
}),
831858
arcgis_sign_in: Some(Box::new(move |portal, client_id, slot| crate::arcgis::sign_in(portal, client_id, slot, arcgis_ctx.clone()))),
832859
load_pref: Some(load_pref),
833860
save_pref: Some(save_pref),
@@ -873,6 +900,8 @@ fn services(inbox: Inbox, font_inbox: Inbox, notes: Notes, ctx: egui::Context, e
873900
rfd::AsyncFileDialog::new().add_filter("Shapefile", &["shp", "dbf", "shx", "prj", "cpg", "zip"])
874901
} else if purpose == "project" {
875902
rfd::AsyncFileDialog::new().add_filter("Projects (RustGIS, GeoLibre)", &["rgis", "rgisx", "rgispkg", "geolibre", "json"])
903+
} else if purpose == "qgisProject" {
904+
rfd::AsyncFileDialog::new().add_filter(rustgis_ui_egui::tl!("QGIS project"), &["qgs", "qgz"])
876905
} else if purpose == "item" {
877906
rfd::AsyncFileDialog::new().add_filter(
878907
"RustGIS items",

0 commit comments

Comments
 (0)