[Feature]: Let plugins use raster.mosaic with the Imagery extension off (DEM tile download)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
Direzione di ricerca
Inizia da crates/engine/src/extensions.rs ed esamina IMAGERY.commands, poi segui la policy dei comandi e i test che verificano il blocco dell’estensione per raster.mosaic e raster.process. L’issue propone di rimuovere entrambe le voci da quell’elenco. Il lavoro è concluso quando i plugin e le sessioni CLI o Python predefinite possono chiamarli con Imagery disabilitato e i test della policy sono stati aggiornati per confermare questo comportamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Before you start
- I searched the existing issues and the roadmap and did not find a duplicate request.
What problem does this solve?
We port the Isoliner QGIS plugin to RustGIS as a process plugin: https://github.com/Valery35/isoliner-rustgis (v0.1.20). Tools 2.01 and 2.02 download DEM and topobase tiles for an extent (GLO-30, Mapzen) and merge them into one relief. The tile names and URLs are already computed in Rust (dem_fetch.rs).
A plugin can download a tile with layer.addUrl, but it cannot merge the tiles into one raster:
raster.mosaicis listed in the Imagery extension (crates/engine/src/extensions.rs,IMAGERY.commands), and that extension isdefault_on: false.- A plugin can't turn an extension on:
extension.enableis reserved. - A plugin can't count on the user having turned Imagery on, and in the command line and Python sessions extensions start at their defaults.
So a plugin can only add N separate tile layers, not the single DEM its tools need. #2823 asked to take raster.mosaic out of the Imagery extension; it is closed, but in v0.8.0 raster.mosaic is still in IMAGERY.commands and still refused with the extension off.
Proposed solution
One of:
- Take
raster.mosaicout of the Imagery extension, as #2823 asked: it is a general raster step (elevation, soil, rainfall), not imagery-only.raster.process(clip) has the same problem. - Or let a plugin call
raster.mosaicregardless of the extension state, the way it can calllayer.addUrlandlayer.addDatatoday. - Or a plugin-facing helper that downloads a list of URLs and mosaics them into one raster in a single call (the DEM case), so a plugin doesn't have to add N layers and merge them.
Option 1 is the smallest: move "raster.mosaic" (and "raster.process") out of IMAGERY.commands. The command itself already works without the extension's other pieces.
Estimated scope
Small: move two entries out of IMAGERY.commands, check the command policy and the tests that expect the extension gate.
Alternatives considered
- Adding the tiles as separate layers and letting the user merge them by hand. That is what we do today, and it is not the single DEM the tools take.
- Downloading tiles through
host.fetch. It returns text and JSON, not bytes; #2428 asks for a byte range of a remote file, but a whole GeoTIFF tile is a different case. - Shipping our own mosaic in the plugin. It would duplicate
raster.mosaic, and the plugin would still need the tiles as layers or files.
Additional context
RustGIS 0.8.0. Plugin: https://github.com/Valery35/isoliner-rustgis. Raster inputs for plugin tools are tracked in #1933; binary fetch in #2428. The two DEM tools are 2.01 (dem_download) and 2.02 (topobase_download) in the QGIS Isoliner module.
- Lingua principale
- Rust
- Stelle
- 1.9k
- Fork
- 268
- Merge medio
- 8h 21m
- PR unite (30g)
- 936
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di opengeos/RustGIS
-
unconfirmed possible issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
opengeos/RustGIS#3133 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
opengeos/RustGIS#3131 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: a layout legend's title longer than its box runs past itForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaunconfirmed possible issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
opengeos/RustGIS#3115 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature]: Plugin tools: nested toolbox groups in the Tools pane (QGIS-style module structure)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di opengeos/RustGIS
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
The-Swarm-Corporation/swarms-rs#168 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
farion1231/cc-switch#10071 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
priority: low rust tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jonathanong/no-mistakes#4813 ·
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Forse già presa @G-darshan-32 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
clipy-recorder/clipy#164 · 1 commento ·