Repository navigation
fix(engine, map): a map package's map file requires what it draws, and an image's dots show in a feature of no fill (#2266) - #2300
Conversation
…d an image's dots show in a feature of no fill (opengeos#2266)
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewBugs: None found. I checked the new Security: None found. No new input parsing, and no new file or network access. Performance: None found. The change adds one Quality:
AGENTS.md:
Already raised: 0 earlier concerns, since there are no prior review threads on this PR. Change sizeCompared with main: the whole PR, merge base 6205caa to PR head 2c6e993.
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. |
Code reviewI found no blocking bugs or security issues. The change is small (4 files, about 20 changed lines). I checked the signatures it depends on, the render paths that consume Bugs: none found.
Security: none found. No new input parsing or file handling; the package path reuses the existing serializer. Performance: no concern. Features with no fill and image dots now go through the existing tile cache, and the cost is bounded by the same dot count. Quality (for the release quality pass):
AGENTS.md: no violations found.
I posted no inline comments: the findings are minor or quality-pass items. I left 1 earlier concern alone because it was already raised: the unresolved thread on Change sizeCompared with
|
Summary
A follow-up to #2278 (#2266 part A1), from CodeRabbit's last review there, which came after the merge.
map.package(map and mobile packages) wrote its.rgismapwithout the header the map file writer gives, sorequireswas missing, and an older RustGIS had nothing to refuse it by. It now writes throughmap_file_bytes, asmap.savedoes, so every capability a map needs (picture-markers, terrain, shaded relief, …) is declared there too.FillLayer::drawscounts a dot fill whose marker is an image as drawn whatever the fill colour, asSymbol::drawsdoes for a point's image, so its legend row isn't dropped.Left for later, as said on #2278:
layer.lineStrokesrefuses"mark": "image", and the Marks pane drops the error): part of A2, which sets images in marks.Testing
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningscargo nextest run --workspacewithout the DuckDB tests, which fail on this machine for reasons unrelated to this change: 7394 passed;hostile_params_never_panic, doc tests,cargo xtask layers,cargo xtask schema --check,cargo check -p rustgis-web --target wasm32-unknown-unknownan_image_is_a_marker_kept_in_the_project_file_that_an_older_reader_refuses(engine) now packages the map, as a map and a mobile package, and readsrequires: ["picture-markers"]from the map file inside.picture_markers_keep_their_image_once_and_bound_what_a_file_gives(map) checks that an image's dots draw in a feature of no fill, and a circle's or no image's don't.UI evidence
No visible UI change.
Related issue
Part of #2266. Follows #2278.
Summary by CodeRabbit