layer.symbology: manual graduated breaks refused on a layer read in place ("has no numeric values")
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start by tracing layer.symbology for graduated renderers and how it obtains numeric values from layers read in place; compare that path with style.add and style.apply, which the issue says work. Then inspect how remote GeoParquet statistics are exposed for a field maximum and how view features are classified. Done means manual breaks produce the stated classes, and quantile classification uses the current view as described.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
layer.symbology with "type": "graduated" and "method": "manual" is refused on a layer read in place (a remote GeoParquet or FlatGeobuf, read a view at a time): 'height' has no numeric values. Manual breaks don't need the field's values, but the command looks for them in the features held, and a layer read in place holds none.
The same classes, written as a style and applied with style.add and style.apply, draw correctly on that layer. So the renderer works; only the command refuses.
Steps to reproduce (RustGIS 0.7.0, code unchanged on main def3c292)
GlobalBuildingAtlas on Source Cooperative: a GeoParquet of 1.09 GB, 13.6 M buildings, with a numeric height field (Double):
layer.addUrl {"url": "https://data.source.coop/tge-labs/globalbuildingatlas-lod1/w045_s20_w040_s25.parquet", "name": "gba"}
map.goToXY {"lon": -42.8825, "lat": -20.754, "scale": 8000}
layer.symbology {"layer": "gba", "type": "graduated", "field": "height", "method": "manual", "breaks": [4, 7, 10, 15, 25]}
- Result:
layer.symbology: 'height' has no numeric values. Exporting the map first, so the view's features are read, gives the same answer. - Expected: the six classes, with upper bounds 4, 7, 10, 15 and 25. The last class would be closed by a large bound, since the field's largest value isn't known.
Choices in this proposal
- Manual breaks: accepted without reading values. The last class is closed by the field's statistics when the file has them (GeoParquet column statistics give a max), else left open (
+∞), and the legend says "more than 25". - Other methods (natural breaks, quantile…) on a layer read in place: classify the features the current view holds. The answer then says the classes come from the view.
- Unique values: the same, values from the view.
- Tests:
- manual breaks on a remote GeoParquet layer give a Graduated renderer;
- quantiles on it come from the view and say so.
Context
This came up in the BrasilData plugin, which colours GlobalBuildingAtlas buildings by height. The plugin now writes the classes as a style (style.add), which works around this.
- Lingua principale
- Rust
- Stelle
- 1.9k
- Fork
- 268
- Merge medio
- 11h 1m
- PR unite (30g)
- 942
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
-
[Bug]: layer.move to the place a layer already has fails and stops a script; with several layers it leaves an empty undo stepForse già presa @jgregoriorincon l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
opengeos/RustGIS#2621 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
opengeos/RustGIS#1446 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di opengeos/RustGIS
Issue simili
-
文件夹重大BUG:不支持重命名Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
postgresql-rules / queue-rules: implicit KEY SHARE before a parent key update, and job self-overlapAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
jonathanong/no-mistakes#3879 ·
I maintainer di solito rispondono entro 1 giorno
-
area:index v0.35.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pbakaus/impeccable#1653 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
nautechsystems/nautilus_trader#5741 ·
I maintainer di solito rispondono entro 1 giorno