Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by annakrat): Backported in r60377. -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:23 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by mlennert): Replying to [comment:18 martinl]: Replying to [comment:17 mlennert]: Do you suggest to use this flag by default? Yes. please try out r60251 (trunk). Doesn't work for me. I still get values such as; {{{ nsres: 9.9953005 ewres: 9.99522706 }}} while working with the 10m resolution elevation data from the NC dataset. I've tried playing with the different constrain settings in the wxGUI MapDisplay (Constrain display resolution to computational settings and Align region extent based on display size), but no combination of the two seemed to do the trick. Does the GUI internally redefine the region for display and then applies that region in that call to g.region ? Moritz -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:19 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by neteler): Replying to [comment:19 mlennert]: ... Does the GUI internally redefine the region for display and then applies that region in that call to g.region ? This reminds me of my question posted in grass-dev: On Wed, Apr 16, 2014 at 6:09 PM, Markus Neteler nete...@osgeo.org wrote: Hi, when trying to render a large raster map with d.rast in the command line version (d.mon wx0), then it tries to use the current region which leads to a cairo memory error. It seems that the wxGUI is initializing the display in a more reasonable way to downsample the map to be rendered on the fly since it makes no sense to render it at original resolution. This magic is yet missing in d.mon. Where is that calculated in wxGUI to get an idea about the calculation of map display window size versus raster map size/resolution? Maybe related, maybe not. In any case a resolution/region issue. -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:20 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by mlennert): Very nice tool, indeed, thanks ! Just wondering: in most of my applications, I generally would want to keep the resolution as set before, i.e. use the -a flag in the call to g.region. Otherwise, one will generally get weird resolutions since drawing the rectangle as a multiple of the desired resolution is a bit difficult. Moritz -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:14 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by martinl): Replying to [comment:14 mlennert]: Just wondering: in most of my applications, I generally would want to keep the resolution as set before, i.e. use the -a flag in the call to g.region. Otherwise, one will generally get weird resolutions since drawing the rectangle as a multiple of the desired resolution is a bit difficult. Do you suggest to use this flag by default? -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:15 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by vincent): Replying to [comment:15 martinl]: Do you suggest to use this flag by default? +1 for the default -a flag. -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:16 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by mlennert): Replying to [comment:15 martinl]: Replying to [comment:14 mlennert]: Just wondering: in most of my applications, I generally would want to keep the resolution as set before, i.e. use the -a flag in the call to g.region. Otherwise, one will generally get weird resolutions since drawing the rectangle as a multiple of the desired resolution is a bit difficult. Do you suggest to use this flag by default? Yes. Moritz -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:17 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds --+- Reporter: vincent | Owner: martinl Type: enhancement | Status: closed Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Resolution: fixed|Keywords: region Platform: Unspecified | Cpu: Unspecified --+- Comment(by martinl): Replying to [comment:17 mlennert]: Do you suggest to use this flag by default? Yes. please try out r60251 (trunk). -- Ticket URL: https://trac.osgeo.org/grass/ticket/2277#comment:18 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by martinl): Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. for record: backported to relbr70 as r60125 -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:11 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by vincent): Replying to [comment:11 martinl]: Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. for record: backported to relbr70 as r60125 OK, a slight typo detail: line 1235 in grass/branches/releasebranch_7_0/gui/wxpython/mapdisp/frame.py: {{{s/compulational/computational/}}} -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:12 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by martinl): Replying to [comment:2 vincent]: Replying to [comment:1 martinl]: Slightly related, it's possible to set region extent from display, see `Various zoom options - Set computational region from display extent`. Yes I use that, but proceeding this way may not be very handy : you have to resize the map display frame if you need to define e.g. an especially narrow region. right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:3 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by martinl): Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. `Various zoom options - Set computation region extent interactively` -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:4 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Changes (by martinl): * cc: grass-dev@… (added) * owner: grass-dev@… = martinl * status: new = assigned -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:5 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by vincent): Replying to [comment:4 martinl]: Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. `Various zoom options - Set computation region extent interactively` Great, Martin ! it works like a charm... Do you plan to backport this to 6.4 relbr too ? Thank you -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:6 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by vincent): Replying to [comment:4 martinl]: Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. `Various zoom options - Set computation region extent interactively` Oops, line 1257 in grass/trunk/gui/wxpython/mapdisp/frame.py: [[BR]] `s/iteractively/interactively/` -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:7 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by martinl): Replying to [comment:6 vincent]: Do you plan to backport this to 6.4 relbr too ? not really, the code is different, it would require extra work. Moreover we are very close to RC1. Feature freeze time. -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:9 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: martinl Type: enhancement | Status: assigned Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by wenzeslaus): Replying to [comment:9 martinl]: Replying to [comment:6 vincent]: Replying to [comment:3 martinl]: right, please try out r60055 (trunk, GRASS 7.1). Later I can backported to relbr70. Do you plan to backport this to 6.4 relbr too ? not really, the code is different, it would require extra work. Moreover we are very close to RC1. Feature freeze time. And this is the problem of backporting features. Will we also backport to 6.5 (or even to 6.3)? And then fix the bugs in all branches (there are always some at least minor, such as [changeset:60059 typos]) and also backport improvements (e.g. printing of the region to console to get some feedback) for the new features once they are in place in all branches. -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:10 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 6.4.4 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- When using grass with wx gui, one can regret the lack of an interactive tool in map display window that would allow to graphically determine region bounds via a drag-n-drop box. I don't mean to interact with region resolutions, only with boundaries. If I refer to gui/wxpython/mapdisp/mapwindow.py, it would be a kind of mix between functions Zoom(self, begin, end, zoomtype) and DisplayToWind(self). The latter is nice except if you need to define a region whose dimensions don't fit with the map display frame ratio... My knowledge of python is too poor to propose any concrete coding, but I guess it should not be that tricky to implement. Does anyone else think it's a good idea that wxgui provides an on-the-fly method for region setting ? -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Changes (by martinl): * milestone: 6.4.4 = 7.0.0 Comment: Slightly related, it's possible to set region extent from display, see `Various zoom options - Set computational region from display extent`. In any case milestone moved to GRASS 7. -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:1 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS GIS] #2277: graphically set up region bounds
#2277: graphically set up region bounds -+-- Reporter: vincent | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 7.0.0 Component: wxGUI| Version: unspecified Keywords: region |Platform: Unspecified Cpu: Unspecified | -+-- Comment(by vincent): Replying to [comment:1 martinl]: Slightly related, it's possible to set region extent from display, see `Various zoom options - Set computational region from display extent`. Yes I use that, but proceeding this way may not be very handy : you have to resize the map display frame if you need to define e.g. an especially narrow region. -- Ticket URL: http://trac.osgeo.org/grass/ticket/2277#comment:2 GRASS GIS http://grass.osgeo.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev