Repository navigation
feat(engine): edits, paste, 3D exports and service legends give loss codes, and exports keep the codes drawing gave (#2371) #3015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
85e77f1
feat(engine): edits, paste, 3D exports and service legends give loss …
Mavrick-F f91370c
fix(engine): STL counts a flat polygon as lost only when it has an ar…
Mavrick-F f4f92dd
fix(engine): flat polygons and lines count only with an area or lengt…
Mavrick-F 2b699e5
fix(engine): STL takes a flat ring's area from its first vertex, agai…
Mavrick-F 8e438dd
fix(engine): STL refuses a layer of flat or line features alone on co…
Mavrick-F 9680708
fix(engine): STL counts a flat polygon with a coordinate that isn't f…
Mavrick-F 05bdf94
fix(engine): STL tells a flat ring's area from rounding by the roundi…
Mavrick-F File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The WMS count is at most 1 per layer, whatever the number of pictures its default style offers.
wms_legendkeeps only the first picture RustGIS shows (itsfind_map, around line 1354) and drops the rest without any count. So a style with two valid PNGLegendURLs (say, one per size) silently loses the second. A style with three SVG pictures reports1 legend picture(s) ... left out.The WMTS path now counts each picture it can't keep, so the two services report differently. The notice's noun is "legend picture(s)", so a per-layer count undercounts. Either count each offered picture that isn't kept (the first valid one stays the layer's legend), or state in the doc comment and the notice that a WMS layer keeps one picture by design and why the rest aren't counted. I have not run the tests.
Confidence: medium. The one-picture design may be deliberate, but the count is what users see.
Category: bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By design, now said in the field's doc comment (2b699e5). A WMS style's
LegendURLs are the one legend in other formats or sizes (WMS 1.3.0 §7.2.4.6.4). So a layer that keeps one it can show loses nothing, and one that keeps none loses its legend, counted once. A WMTS style's are for different scales, so each one it can't keep is counted.