You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(extensions): clip, resample and mosaic run without the Imagery extension (#2823) - #2826
raster.process (clip and resample) and raster.mosaic run whether or not the Imagery extension is on, as raster.project and raster.rasterize already do. Their ids, parameters, results and permissions don't change.
Engine: the two ids leave extensions::IMAGERY.commands. Their location is Analyze › Raster, next to Project Raster and Polygons to Raster. Every gate (Session::run, authorize, finish_raster, the AI Assistant's command search, Command Search, Show Me) reads that one list, so nothing else needed a change there.
Workflows pane:process leaves section_extension, so the section is always in the pane's list and ui.pane.workflows {"section": "process"} is never refused.
Ribbon: the Process button moves from Imagery › Imagery Tools to the Raster group of the Analyze tab, after Function Editor.
Docs: the Analyze and Extensions rows of the user guide, and analysis.md (which commands run without the extension, Process as an entry of its own, outside the Imagery section, and a row of the Workflows table, and that Mosaic Rasters has no pane, as its neighbours say).
Choices
As in the issue: both commands whole, the other 20 stay in Imagery, the extension stays off by default (its tab stays hidden), the button moves rather than being in two places, and Mosaic Rasters gets no button.
Two things the issue doesn't name:
The Analyze tab's Workflows menu no longer lists Process, as it already leaves out Raster Functions and Function Editor, whose buttons are beside it in Raster (one button per destination). The pane's own list has it.
The button's tooltip now says what it does: "Clip a raster to polygons or the view, or resample it." It named only the view. This is one new string for the catalogs, which are left to the release pass.
Reaches
Desktop and browser: the apps, where Imagery starts off. The phone's touch interface has no entry for either command; the desktop interface it can switch to has the same ribbon.
Command line and Python: sessions there start with every extension on, so nothing changes unless extension.disable was run; then these two still run.
Plugins: a plugin with edit can call both with Imagery off, which it can't turn on (extension.enable is Reserved). raster.mosaic still needs files to read or write one.
Scripts and saved tasks that name either command stop being refused in an app with Imagery off. Model graphs name tools, not commands, so they don't change. Projects hold neither the extension's state nor the commands' location.
A setting that has Imagery on or off is read and written as before.
raster.mosaic runs on the UI thread, without Cancel, and is now reachable in the apps by default. The command isn't changed here and ran the same way with Imagery on. Nothing in the app's windows starts it (it has no button or pane, and Command Search says it needs input): a script, a task, the AI Assistant, an attached agent or a plugin does. raster.project, which was never in an extension, also runs there.
What bounds it: the result's cells times bands are at most max_samples() (120 million, up to 1 billion on a computer with more memory), checked as each input is read and before the rest are; each file is within the same limit, as one opened as an overview is refused; and there are at most 10,000 inputs. The inputs' total isn't bounded when they overlap.
Measured with the 0.8.0 release build from the command line (same raster_mosaic, i7-10700), two Float32 tiles: 60 million cells 0.7 s from layers, 1.2 s from files; 120 million 1.0–1.2 s and 1.9 s; 480 million 3.8 s and 6.9 s (9.9 s writing the GeoTIFF too). Twenty files of 60 million cells over the same area take 11 s.
The GeoLibre Mosaic tool, where GeoLibre is installed, runs in the background with Cancel, but it isn't the same operation (it resamples and blends).
A background path for raster.mosaic isn't in this pull request.
Ribbon
Task, tab and group: cut a raster to an area, or make it coarser: a new result from existing data, so Analyze, in the group with the other raster functions. The button opens the Workflows pane at Process; the pane chooses the layer and the polygons.
Where the removed control's action is: Analyze › Raster › Process, Command Search ("Process", now located at Analyze › Raster) and the pane's list. No destination is repeated on the ribbon.
Clicks: from the Home tab with Imagery off, before: not reachable without Plugins › Extensions (turn it on, then Imagery tab, Process); after: 2 clicks, 1 tab switch. With Imagery on: 2 clicks and 1 tab switch before and after.
On a user's ribbon with Imagery on, Process is no longer on the Imagery tab.
Testing
New engine tests: clip_resample_and_mosaic_run_with_imagery_off (clip by a polygon layer, resample and mosaic, each run by the user, a script, a saved task and a plugin session, with the sizes and cell counts of the results; clip and resample are also run to the end as the app's background runs, each worked out on a thread, landed and added, with the same checks (raster.mosaic has no background run); raster.classify, raster.index, raster.change and raster.editPixels refused to the user and to the plugin, and extension.enable refused to the plugin) and general_raster_commands_are_in_no_extension (which also checks the other Imagery commands are refused in an app at its defaults).
New UI tests: process_is_on_the_analyze_tab_with_imagery_off_and_on (clicks the button, opens the pane's list, checks the Imagery tab has no Process), a_command_and_its_workflows_section_are_in_one_extension (Command Search and the sections can't disagree), and cases in the two extension tests (the section opens, Show Me opens Analyze). the_app_starts_with_imagery_off_until_it_is_turned_on still covers the hidden tab.
cargo test -p rustgis-engine: 2,284 unit tests pass; 223 of the 224 integration tests that ran pass, and portable_projects::reload::wrong_geometry_missing_file… fails on this computer only, as it compares an operating system message that is in Portuguese here.
cargo test -p rustgis-ui-egui --lib --test smoke --test command_ids: 1,338, 142 and 2 pass. The other UI test files weren't run here.
After the last commits: the branch merged with main at 7ecae77 passes the engine's 2,415 unit tests and the UI crate's --lib --test smoke --test command_ids (1,400, 149 and 2), and the engine's integration tests but the one above; that tree lacked only the last commit (documentation). cargo test -p rustgis-assistant --lib, which embeds the pages: 295 pass.
cargo fmt --check, clippy with -D warnings on the two crates with all targets, cargo xtask layers, test-hygiene and rows. command-surface.txt doesn't change (ids and parameters are the same).
Not tested: the browser and phone apps, an installed plugin in the desktop window (the plugin session above is the engine's test plugin), and the rest of the workspace, left to CI.
UI evidence
Analyze, Imagery off, before and after. The "before" pictures are from a build of main at 41afd45 with an unrelated branch; these groups are the same at this pull request's base:
Process and Mosaic Rasters are available under Analyze › Raster, whether or not the Imagery extension is enabled.
The Process workflow supports clipping rasters to the view or a polygon layer, as well as resampling. General raster tools such as Project Raster and Polygons to Raster also remain available when the extension is off.
Documentation
Updated the user guide with the tools’ locations and availability, clipping options—including how selections affect the initial choice—and mosaic usage from scripting and other command interfaces.
…xtension (opengeos#2823)
raster.process and raster.mosaic leave the Imagery extension's list, as
raster.project and raster.rasterize already are, and are under Analyze ›
Raster. The Process button moves from Imagery › Imagery Tools to that group.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No actionable comments were generated in the recent review.
Walkthrough
The change makes raster.process and raster.mosaic available outside the Imagery extension and places them under Analyze › Raster. The Process workflow and button remain available when Imagery is disabled. Tests and user-guide pages cover command availability and UI placement.
Changes: Raster command availability
Layer / File(s)
Summary
Command ownership and registration crates/engine/src/cmd/imagery.rs, crates/engine/src/extensions.rs
raster.process and raster.mosaic are registered under Analyze › Raster and removed from IMAGERY.commands. Tests check that these and other general raster commands are not blocked when Imagery is disabled, while commands in IMAGERY.commands remain blocked.
Process in the Analyze interface crates/ui-egui/src/analysispane.rs, crates/ui-egui/src/ribbon.rs, crates/ui-egui/src/chrome.rs, crates/ui-egui/src/extensionsui.rs, crates/ui-egui/tests/smoke.rs
The process workflow section is no longer assigned to Imagery. Analyze adds a Process button that opens the workflow section. UI tests check Process placement and availability with Imagery enabled and disabled.
Execution checks and user guide crates/engine/src/tests.rs, docs/user-guide/analysis.md, docs/user-guide/index.md
Engine tests exercise clip, resample, and mosaic while Imagery is disabled, and check that selected Imagery commands remain gated. The user guide describes command availability, placement, and workflow details.
sequenceDiagram
actor User
participant AnalyzeTab as Analyze tab
participant WorkflowsPane as Workflows pane
User->>AnalyzeTab: Open Analyze
User->>AnalyzeTab: Select Process
AnalyzeTab->>WorkflowsPane: Open the process workflow section
Loading
Possibly related PRs
opengeos/RustGIS#1764: Introduced the extension mechanism and assigned these raster commands to Imagery; this change updates their ownership and UI placement.
opengeos/RustGIS#1236: Defines the plugin permission rule for raster.mosaic; this change leaves that rule unchanged.
Suggested reviewers:giswqs
Merge Risk: Minimal · up to 2b10a
Clip, resample and mosaic now run without the Imagery extension, and Process moves to Analyze › Raster. No merge-blocking risk was identified, and tests cover the new availability and placement.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(extensions): clip, resample and mosaic run without the Imagery extension (#2823)" names the main change: raster.process (clip and resample) and raster.mosaic are removed from the Image…
Linked Issues check
Issue #2823 is the only directly linked issue. It is open, so its coding requirements apply. Each requirement has matching changes in the whole-PR summary (merge base cc400f6 to head 2b10a01):
- En…
Out of Scope Changes check
Each changed area connects to #2823:
- Engine gate lists (imagery.rs, extensions.rs): these move the two commands. The added test asserts that general raster commands have no extension owner. Require…
Description check
The description follows the repository template closely. It has Summary, Testing, UI evidence, and Related issue sections. The Summary explains that raster.process (clip and resample) and raster.mosai…
Full details: Title check
Explanation
The title "feat(extensions): clip, resample and mosaic run without the Imagery extension (#2823)" names the main change: raster.process (clip and resample) and raster.mosaic are removed from the Imagery extension command list so they run with Imagery off. The changeset also moves the Process button, the Workflows section, and docs, which the title does not mention, but those are consequences of the same change. The title is specific and accurate.
Full details: Linked Issues check
Explanation
Issue #2823 is the only directly linked issue. It is open, so its coding requirements apply. Each requirement has matching changes in the whole-PR summary (merge base cc400f6 to head 2b10a01):
Engine [#2823]: raster.process and raster.mosaic are removed from extensions::IMAGERY.commands (crates/engine/src/extensions.rs). Both are registered under Analyze › Raster (crates/engine/src/cmd/imagery.rs). IDs, parameters, and handlers are unchanged. The other Imagery commands stay in the extension.
Workflows pane [#2823]: process is removed from section_extension (crates/ui-egui/src/analysispane.rs), so the Process section is always listed. chrome.rs adds a test that routed commands and their workflow sections share one extension owner.
Ribbon [#2823]: the Process button moves from Imagery › Imagery Tools to the Raster group of the Analyze tab (crates/ui-egui/src/ribbon.rs). Mosaic Rasters gets no button. Imagery Tools keeps Indices and Pixel Editor.
Automated tests [#2823]: the engine test covers clip, resample, and mosaic with Imagery off, through the user, a script, a saved task, and a plugin. It also checks that classify, index, change, and editPixels stay refused, and that a plugin cannot enable the extension. The UI smoke test checks that Process opens the Workflows pane with Imagery off and on.
Docs [#2823]: analysis.md and index.md are updated for the new location and the always-on status. Docs are non-coding and are not assessed as requirements.
The extension default stays off, as the issue requires. The issue's other requirements are met by the summary evidence. Test results were reported by the author and were not re-run in this review. The reported failure (portable_projects::reload::wrong_geometry_missing_file…) is environment-specific and does not involve these changes.
Full details: Out of Scope Changes check
Explanation
Each changed area connects to #2823:
Engine gate lists (imagery.rs, extensions.rs): these move the two commands. The added test asserts that general raster commands have no extension owner. Required.
Workflows pane (analysispane.rs) and chrome.rs test: these make the Process section follow the command's owner. Required.
Ribbon (ribbon.rs): the button move is required. Removing Process from the Analyze Workflows menu follows the existing pattern for Raster Functions and Function Editor, and the PR description states this choice. The tooltip change is one string on the moved button, and the description states it.
Tests (tests.rs, smoke.rs, extensionsui.rs): these verify the objective. Supporting.
Docs (analysis.md, index.md): these describe the new location and behavior. The expanded Process clipping notes (no-data, alpha band, Selected only default) are documentation of the Process command that the moved button exposes. They are supporting, and no unrelated code change was found.
This assessment relies on the whole-PR summary and the previous review. No focused source inspection was needed to resolve a gap.
Full details: Description check
Explanation
The description follows the repository template closely. It has Summary, Testing, UI evidence, and Related issue sections. The Summary explains that raster.process (clip and resample) and raster.mosaic move out of the Imagery extension, with the engine, Workflows pane, ribbon, and docs changes. The Testing section lists new engine and UI tests, the commands run, and the results, including one integration-test failure attributed to a Portuguese OS message. The UI evidence section has before and after screenshots for the Analyze and Imagery ribbons, plus the Workflows pane. The Related issue section cites Fixes #2823, which fills the template's placeholder. The description is detailed and mostly complete. It has some minor gaps. The template asks for the exact commands run through cargo xtask ci, and the description lists separate checks instead. The Related issue section is in the body text, not in the template's own section. The screenshots use external links, which the reviewer must open to inspect. Several long paragraphs in the Summary and Reaches sections are dense. These issues do not make the description incomplete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit hops where raster tiles align, Past Imagery’s gate, to Analyze’s sign. Clip and resample, then mosaic the ground, Process is ready wherever it’s found. The workflow stays open, the cells settle right, And the rabbit nibbles a carrot tonight.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 87b7b63d-f61a-426d-8d88-9a7c5e6bf43d
Commits
Reviewing files that changed from the base of the PR and between 6fbaf5d and 2b10a01.
Files selected for processing: 2
crates/engine/src/tests.rs
docs/user-guide/analysis.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
I found no bugs, security problems, performance problems or AGENTS.md breaks in this PR. The gating change is consistent: raster.process and raster.mosaic leave IMAGERY.commands, and every gate reads that list. The one finding is a test-coverage overstatement, posted inline.
Bugs: none found.
Security: none found. Plugins with edit can now run clip and resample with Imagery off. Both declare no file effect, so this is a deliberate behaviour change with no new access. Mosaic still needs files for path inputs, and the new test covers that.
Performance: none found. No new copies of layer or raster data.
Quality:
crates/engine/src/tests.rs:20235 (confidence high): the "run on a thread" step in clip_resample_and_mosaic_run_with_imagery_off calls start_raster and drops the returned RasterRun without calling run() or raster_land. It checks admission only, yet the PR description says these commands are tested as background runs. Posted inline.
docs/user-guide/analysis.md around lines 2401–2404 (confidence medium): the sentence "Clipping and Zonal Statistics share / polygon transformation rules" is broken across lines in a way that will reflow badly. Left for the release quality pass.
AGENTS.md: no breaks found. The Process button moved into the Analyze Raster group, the Imagery tab no longer lists it, and both are in the docs. Command ids and parameters are unchanged, so command-surface.txt needs no update.
Not verified: I had no shell, so I did not compile or run the tests. Confidence in the rest of the change rests on reading the diff and the surrounding code.
Prior reviews: the PR has no existing review threads, so no concerns were left out as already raised.
Change size
Compared with the base branch: the whole PR, merge base cc400f6 to head 6fbaf5d.
…pengeos#2823)
The background leg only started the runs; it now works them out on a thread,
lands them and checks the rasters. Rewraps a paragraph of analysis.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR moves raster.process and raster.mosaic out of the Imagery extension, so they run with the extension off. The engine gates, the Workflows section, the ribbon button, and the docs change together. I found no bugs, crash paths, silent losses, or security problems in the changed code. One inline quality comment is posted on the docs. One earlier thread was left alone (see below).
Bugs
None found. I checked the ran path in made_or_ran (it stays behind the continuation-owner check), the IN_BACKGROUND registration of raster.process, the search_action and needs_input handling in Command Search, and the test arithmetic for the clip, resample and mosaic cell counts (20, 25 and 200). All are consistent.
Security
None found. Both commands keep their effects (NONE, and Files for mosaic). The new reach for plugins with edit only covers raster.process, and it is exactly what the PR describes.
Performance
None new. raster.mosaic has no background path (IN_BACKGROUND lists imagery.mosaic but not raster.mosaic). That predates this PR, and the PR doesn't change it. It does become reachable by default now, so it is noted here rather than raised as a finding.
Quality
Docs (inline, docs/user-guide/analysis.md:2054, confidence medium): the Process bullet sits under the ## Imagery heading, while the PR says Process is no longer an Imagery command. The Workflows table links to #imagery, so the placement and the wording disagree.
Docs (nit, not posted): the paragraph at analysis.md:2403–2405 has a rewrap artifact ("Clipping and Zonal / Statistics share / polygon transformation rules"). It renders fine, so it can wait for the release quality pass.
AGENTS.md
PR description, "Reach every surface" (confidence medium-high): the "Reaches" section covers the desktop and browser, the CLI and Python, and plugins. It does not say whether shortcuts, MCP, or the "way back" (undo, removal, reopening) are affected. The rule asks for each of these to be stated, or for the reason it doesn't apply. The phone is covered, and the ribbon and Command Search are covered in the Ribbon and Engine sections.
The new strings are wrapped correctly for translation, no assets were added, and the layering is unchanged.
Earlier concerns left alone
1 earlier concern was left alone. The thread on tests.rs (the "run the app makes on a thread" leg only calls start_raster, so it proves admission only) is already raised. The author has said the step will run to the end in the next push, so I did not post it again.
Change size
Compared: the whole PR against main (merge base cc400f6 to PR head 6fbaf5d).
Two inline comments are posted: one agents-md finding on raster.mosaic, and one quality nit on the Process tooltip. I found no bugs, security problems or crash paths in the changed lines. The two earlier threads on this PR are answered and their code is fixed, so I left them alone (2 concerns not re-raised).
Bugs
None found. I traced the gates (owner/blocks, section_extension, section_shown, Show Me's tab lookup) and the moved commands' locations, and they agree with the new tests.
Covered under AGENTS.md below. Not raised separately.
Quality
Tooltip for the Analyze › Raster Process button omits the box clip (inline, nit, high confidence).
AGENTS.md
raster.mosaic runs synchronously in Session::run, with no workflows::runs_in_background entry and no long_commands entry, so it has no Cancel. The PR doesn't add that path, but it does make mosaic reachable by default in the apps, where Imagery starts off. Medium-high confidence, and I flagged it as a break of "Never hold the window" (inline).
Change size
Compared with the base branch (merge base cc400f6 to PR head 2b10a01).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2823
Summary
raster.process(clip and resample) andraster.mosaicrun whether or not the Imagery extension is on, asraster.projectandraster.rasterizealready do. Their ids, parameters, results and permissions don't change.extensions::IMAGERY.commands. Their location isAnalyze › Raster, next to Project Raster and Polygons to Raster. Every gate (Session::run,authorize,finish_raster, the AI Assistant's command search, Command Search, Show Me) reads that one list, so nothing else needed a change there.processleavessection_extension, so the section is always in the pane's list andui.pane.workflows {"section": "process"}is never refused.analysis.md(which commands run without the extension, Process as an entry of its own, outside the Imagery section, and a row of the Workflows table, and that Mosaic Rasters has no pane, as its neighbours say).Choices
Reaches
extension.disablewas run; then these two still run.editcan call both with Imagery off, which it can't turn on (extension.enableisReserved).raster.mosaicstill needsfilesto read or write one.raster.mosaicruns on the UI thread, without Cancel, and is now reachable in the apps by default. The command isn't changed here and ran the same way with Imagery on. Nothing in the app's windows starts it (it has no button or pane, and Command Search says it needs input): a script, a task, the AI Assistant, an attached agent or a plugin does.raster.project, which was never in an extension, also runs there.max_samples()(120 million, up to 1 billion on a computer with more memory), checked as each input is read and before the rest are; each file is within the same limit, as one opened as an overview is refused; and there are at most 10,000 inputs. The inputs' total isn't bounded when they overlap.raster_mosaic, i7-10700), two Float32 tiles: 60 million cells 0.7 s from layers, 1.2 s from files; 120 million 1.0–1.2 s and 1.9 s; 480 million 3.8 s and 6.9 s (9.9 s writing the GeoTIFF too). Twenty files of 60 million cells over the same area take 11 s.raster.mosaicisn't in this pull request.Ribbon
Testing
clip_resample_and_mosaic_run_with_imagery_off(clip by a polygon layer, resample and mosaic, each run by the user, a script, a saved task and a plugin session, with the sizes and cell counts of the results; clip and resample are also run to the end as the app's background runs, each worked out on a thread, landed and added, with the same checks (raster.mosaichas no background run);raster.classify,raster.index,raster.changeandraster.editPixelsrefused to the user and to the plugin, andextension.enablerefused to the plugin) andgeneral_raster_commands_are_in_no_extension(which also checks the other Imagery commands are refused in an app at its defaults).process_is_on_the_analyze_tab_with_imagery_off_and_on(clicks the button, opens the pane's list, checks the Imagery tab has no Process),a_command_and_its_workflows_section_are_in_one_extension(Command Search and the sections can't disagree), and cases in the two extension tests (the section opens, Show Me opens Analyze).the_app_starts_with_imagery_off_until_it_is_turned_onstill covers the hidden tab.cargo test -p rustgis-engine: 2,284 unit tests pass; 223 of the 224 integration tests that ran pass, andportable_projects::reload::wrong_geometry_missing_file…fails on this computer only, as it compares an operating system message that is in Portuguese here.cargo test -p rustgis-ui-egui --lib --test smoke --test command_ids: 1,338, 142 and 2 pass. The other UI test files weren't run here.--lib --test smoke --test command_ids(1,400, 149 and 2), and the engine's integration tests but the one above; that tree lacked only the last commit (documentation).cargo test -p rustgis-assistant --lib, which embeds the pages: 295 pass.cargo fmt --check, clippy with-D warningson the two crates with all targets,cargo xtask layers,test-hygieneandrows.command-surface.txtdoesn't change (ids and parameters are the same).UI evidence
Analyze, Imagery off, before and after. The "before" pictures are from a build of main at 41afd45 with an unrelated branch; these groups are the same at this pull request's base:
Imagery tab, extension on, before and after:
The Process section open with Imagery off:
Analyze at 1366 px wide:
🤖 Generated with Claude Code
Summary by CodeRabbit