Repository navigation
Layouts: a publication layout's surrounds keep off the data; a decimal comma (#682, part 3) - #709
Conversation
… area outlined (opengeos#682, part 2) layout.publication takes "locator": "globe" (a sheet's default: a new map of the map's polygon layers on the globe, unlabelled, in a round frame at the map's top left, sized from the renderer's own globe disc), "inset" (the surrounding region on the map itself) or "none" (a figure's default). The map frame's extent indicator outlines the area on either; the legend stops short of it; undo takes the globe's map away with the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l comma (opengeos#682, part 3) The north arrow, the legend, the scale bar and the locator each take the corner where they cover the least of what the map draws (render::layout::frame_coverage: the frame drawn coarse on a blank basemap), keeping their own corners when it makes no difference; one warning names those crowded onto the data. "decimal": "," (layout.publication, layout.page) sets Layout::decimal_comma: graticule, scale bar and colorbar numbers and {scale} print 0,05 and 1:6.300.000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Code reviewI found no blocking bugs in PR #709. I read the whole diff and checked Bugs
Security
Performance
Quality
AGENTS.md
Change sizeThe whole PR against main (merge base 60ae3e9 to PR head e2e1648).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. |
…s box; a UTM zone's EPSG code named by its zone and datum Found making the greening lesson's map with it: the topmost visible raster drawn on a ramp now gets a colorbar under the legend's rows (the legend lists vectors only), and EPSG:31983 reads 'UTM zone 23S' on 'SIRGAS 2000' rather than its code on its GRS 1980 ellipsoid (wkt::utm_of_code, the inverse of the name-to-code table). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI read the full diff and checked the Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared with: the whole PR against main (merge base 60ae3e9 to PR head fea4013).
|
…orced over it The globe's map was a clone of the whole map with its non-polygon layers dropped, so it copied every layer's features first and kept the map's web tiles, swipe, time slider and groups: a map on a web basemap drew its tiles on the disc. It is now a new map with the basemap (the land and borders around the area), graticule and body, and only the polygon layers that show, unlabelled. The legend's corner was given at least 10 mm, so a sheet whose frame was near its smallest drew the legend over the locator (or the scale bar). A corner too small now leaves the legend out, with a warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… out where it has no room, surrounds kept apart From opengeos#706: the globe locator is a new map of what it draws, and a legend corner too small leaves the legend out with a warning. Here that check moves into the corner placement: the legend's room is measured against the surrounds beside and above or below its corner, and the warning names the one in the way. The corner search now tries each assignment once (4^n codes, the first surround's corner changing slowest, so ties still go the same way) instead of re-running identical picks in unused inner loops, and the dead length check is gone. Two surrounds over each other cost ten times their overlap, so in a frame too small for them all the search keeps them apart when some assignment can. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
On the review above, in 59b2751 (which also merges #706's review fixes):
🤖 Addressed by Claude Code |
Code reviewI read the full diff and checked the refusal paths in PR #709 adds a locator (globe or inset), corner placement of the surrounds by how little data they cover, a decimal-comma option, and UTM names for the projection and datum text. I found no definite bugs. The Bugs
Performance
Quality
Security
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head 59b2751).
|
…be's streamed layers left out, said Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/assistant/skills/print-layout/SKILL.md # docs/user-guide/layouts.md
Code reviewI found no blocking bugs. I read the diff and the surrounding source, but I didn't build the code or run the tests. The PR adds a locator (globe or inset), corner placement of the layout surrounds based on map coverage, a decimal-comma option, and UTM naming for the reference text. I confirmed the new Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head 8ce81fb).
|
…next, not left behind Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t, none on a figure) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the skill); the coverage drawn on the map itself frame_coverage cloned the whole map (every layer's features) on each layout.publication just to draw a coarse grid. It now draws the map itself, its basemap set aside for the drawing and put back, as is a label lock waiting to be filled, which the coarse drawing would otherwise fill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI read the full diff and checked the Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head 9812bf3)
|
frame_coverage counted a pixel as drawn only when a channel fell under 245, so a pale fill (such as #FAFAF5) with no outline read as empty and a surround could be placed on it. The blank basemap is pure opaque white with no graticule, so anything else now counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI reviewed the first 600 lines of the diff, which cover Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head f2942b3).
|
…ap is said The legend's width keeps its old 10 mm floor, so a figure or a sheet without a locator lays its legend out as before; the legend is left out only when a locator leaves it under 10 mm of height. Reusing a locator map no layout showed now adds a warning naming it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dden meanwhile is gone) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI read the full diff and posted three inline comments. I couldn't build or run anything here, so none of this was run against the code or its tests. Bugs
Performance
Quality
SecurityNothing found. The new parameters ( AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head 14580c8).
|
… placed; the sheet test pins its one placement warning Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI read the whole diff and the surrounding code in Bugs
Quality (low confidence, optional)
Security
Performance
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 60ae3e9 to PR head c3b7a4f)
|
opengeos#706 went in as one commit; its content is this branch's already, so each conflict keeps this side (part 3's corner placement, decimal comma and the review fixes since), and main's other changes in those files stay. frame_coverage's set-aside label lock takes main's LabelKey, as Map's now holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI found no blocking problems in this PR. I read the diff and the surrounding source only, and did not build or run anything. The concerns below are minor. Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 575b21f to PR head 571832d).
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code reviewI read the whole diff and posted two inline comments. I didn't build the code or run the tests. I found no definite bugs. Bugs
Performance
Quality
Security
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 575b21f to PR head 5d93ecc).
|
Conflicts were all between opengeos#709's squash (identical to 5d93ecc in these files) and this branch, which holds 5d93ecc plus part 4: each hunk kept ours. The block git placed twice (Surround, COLORBAR_MM, OVER_DATA, decimal_mark, at opengeos#709's position as well as ours) is kept once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Part 3 of #682, the last.
#706 (part 2, the locator) is in, and main is merged into this branch, so the diff is this part's changes only.
render::layout::frame_coveragedraws the frame's map on a coarse grid (about 96 cells across) with the basemap set to Blank. Where a layer or its labels drew is data, and the frame's background isn't."decimal": ","onlayout.publication, or onlayout.pagefor any layout, sets a newLayout::decimal_comma.{scale}then print with a decimal comma and points between thousands (0,05,1:6.300.000).graphics::thousandsis now public, for{scale}.{projection}and{datum}readUTM zone 23SandSIRGAS 2000for EPSG:31983, rather than the code over its GRS 1980 ellipsoid. A UTM code's PROJ definition gives only+ellps=GRS80and its label only the code. The newwkt::utm_of_codeis the inverse of the tablewkt::utmreads names with: WGS 84, NAD83, ETRS89 and SIRGAS 2000 zones.cube.trendstraight from the Brazil Data Cube, on UTM 23S.layouts.md, and the assistant'sprint-layoutskill.Testing
publication_surrounds_keep_off_the_data(engine) uses a polygon layer in three cases:"decimal": ",",layout.page'sdecimal, and bad values refused.a_publication_layouts_raster_gets_a_colorbar(engine): a raster on a ramp gets a colorbar inside the legend's box, and a map of vectors only gets none.wkt's UTM test now reads every code's name back (utm_of_codethenutm), and the publication test checks that EPSG:31983 reads "UTM zone 23S" and "SIRGAS 2000".a_decimal_comma_swaps_the_marks(render): the marks swap in numbers. With a decimal comma,{scale}reads1:6.300.000and the text around it keeps its own comma.1:7.600.000.cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningsandcargo xtask layersare clean.rustgis-engine283 passed (3 ignored),rustgis-data325,rustgis-render137,rustgis-map126,rustgis-assistant206 andrustgis-ui-egui264 (unit tests).🤖 Generated with Claude Code
Summary by CodeRabbit