Repository navigation
Rasters, zoom-to, simplified drawing and squared labels in a held layer's own system (C2f-5) #2787
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 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3848a66
Rasters on a map in a coordinate system are drawn by the direct opera…
pick2510 12b9cff
Zoom To Layer, Zoom To Selection, Full Extent and the zoom after addi…
pick2510 fcb764b
A layer held in the map's system gets display copies simplified from …
pick2510 8251882
A frame drawn from display copies lets go of the projected copy made …
pick2510 5fa2fce
Labels squared to a line held in another system read it as the flat m…
pick2510 54ffe1f
Review: zoom works out a held layer's longitude/latitude extent only …
pick2510 7804165
Merge remote-tracking branch 'upstream/main' into feat/crs-draw-follo…
pick2510 74edf99
Review: a raster's direct operation is built once a draw on the drawi…
pick2510 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
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.
When every in-map box is empty, this returns
Nonebefore the longitude/latitude path is tried. Zoom To Layer and Zoom To Selection then report "has no features" or "nothing with a shape is selected" for layers whose other members have places that the map can't draw. Before this change,zoom_toran and gave the beyond-projection notice. The fix is to fall through to the longitude/latitude path whenboxedis empty, and returnNoneonly when that path is empty too.I haven't reproduced this. It needs a set where no in-map layer has geometry and a layer outside the projection's area, so it is narrow.
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.
Fixed in 74edf99: when the layers' box on the map is empty (nothing of them on it) or a single point,
zoom_to_layersfalls through to the longitude/latitude path, which says the map can't show the place.zooming_to_an_empty_layer_in_the_maps_system_and_one_beyond_the_map_says_socovers it (an empty layer held in UTM with a point at 50°E on a UTM 32N map); it fails on the previous head.