-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
d.rast.num: Constrain rendering within the current display extent in the wx monitor #3489
Conversation
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 limitation works very poorly in GUI and it does not makes sense in number of cells because what really matters is the size of a cell in rendered pixes. We probably don't what to go that direction and we don't want to keep increasing the limit based on available hardware. Overall, it would be great if you can remove it as part of this update. |
All three PRs have the same pattern:
|
I'm so sorry, I thought I wrote: I don't see an obvious reason why it shouldn't work. Probably an autocorrect thing. |
No problem. Now we have more detail documentation about how |
Thanks for the very detailed and simple explanations! It'll take some time until I master a bit of every part of GRASS, but it's a good start, and way easier in words like this, I'm lucky for it! My initial comment when "approving" was to highlight the way I thought it was ok, from the two previous, a bit like a proof by mathematical induction, since there was something that prevented me to say it's exactly the same. |
Thanks for writing it up! Would it make sense to move it to the doxygen section as it is easily lost in a PR discussion? |
Now with #3500, it's much simpler from the developer's perspective. No special consideration is necessary. |
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.
I agree. Opening the driver should happen right after the parser given the monitor architecture.
Actually, the Without grass/display/d.rast.num/main.c Lines 207 to 222 in 9c3b67e
# in NC sample dataset
d.mon wx0
g.region rast=elevation
d.rast elevation
d.rast.num elevation I think this limitation can be useful if it is customizable using either a module parameter or an environment variable. For example, if a raster map is large with a lot of cells, it will automatically not render at a scale closer to its full region and will start rendering when the map is zoomed in closely. Like min and max visibility scales. It'll help with accidental zoom out and this has happened a lot to me in |
Some "smart" behavior (aka heuristic) as default combined with a way to pick behavior manually by parameter is a solution I have seen working. |
This PR uses #3482 to allow displaying raster numbers for a smaller display extent (not computational region) than the suggested 200x200. Do we still want this limitation when
d.rast.arrow
doesn't have any or should we add the same limit tod.rast.arrow
?