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
[Bug] d.rast.arrow not aligned with constraining display resolution right after Zoom to saved region #3504
Comments
I think #3503 and this issue are related to aspect ratio calculation. See the screenshot above how the width of each grid cell is stretched, but not the height. The red rectangle was full in height, but not in width. |
I did more testing. From the Map Display Settings, selecting/unselecting "Constrain display resolution to computational settings" redraws the map window and in In A potential solution based on my test: Redraw everything on selecting "Yes" to the constraining display resolution dialog. It'll address both #3503 and this issue. |
This issue is not related to #3505. |
Redraw seems like the right thing to do when this constraint thing changes. It should be also straightforward solution. While I don't know how to do it, my ideal solution would be to remove the need for this dialog. |
I'm not sure if that would be ideal or possible because we need to support both grids (raster cell grid "No" option and snapped-to-map-display grid "Yes"). Personally, I don't really use the Yes grid because I want to see actual raster grids and always snapping to the display extent seems unnatural when you pan partial cell size. I just don't understand in what case someone would need the snapped grid. That's why I've added the |
With the (good) default being the raster cell grid, I think we should reverse the meaning of the |
Describe the bug
d.rast.arrow
rendering is not aligned with constraining display resolution immediately after Zoom to saved region.To Reproduce
Steps to reproduce the behavior:
In NC sample dataset,
g.gui
(d.mon wx0
works fine)r.watershed -sa elevation=elevation drainage=drain_directions
elevation
raster-a
flag (Align grid with raster cells) works finedrain_directions
from step 2 and set Type of existing raster aspect map todrainage
Expected behavior
Nicely aligned arrow grid.
Screenshots
System description (please complete the following information):
Additional context
d.rast.arrow
works fine without constraining display resolution to computational settings with-a
(align grid with raster cells).Related issues: #3502, #3503
The text was updated successfully, but these errors were encountered: