<div dir="ltr"><div><div><div><div><div><br><br>On Fri, Jan 6, 2017 at 6:26 PM, Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> 2017-01-05 22:56 GMT+01:00 Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>>:<br>><br>> > The above example does not set the region from two map layers (one vector,<br>> > one raster), that would be g.region -p vector=vect_map raster=rast_map.<br>> > Instead, it sets the region extents from a vector and aligns the region to a<br>> > raster. That is a big difference.<br>><br>> yes, I am saying that this operation is not straightforward in wxGUI,<br>> user need to do several steps<br>><br>> 1) set comp region from raster<br>> 2) go to settings, enable -a flag\<br>> 3) set comp region from vector<br>> 4) probably disable -a<br>><br>> > IMHO, the GUI should not try to be too clever about how to adjust the<br>> > computational region, instead users should be clever about how to adjust the<br>> > computational region because changed region settings can cause unexpected<br>> > results.<br>><br>> Hm, I added to wxGUI new item to "Set computational region from<br>> selected vector(s) align to raster" (r70276). This is enabled only<br>> when user selects vector(s) and one raster map together. If it make<br>> sense to you I will backport to relbr72.<br><br></div>How about two items:<br></div>- "Set computational region from selected map(s)" will set the region extents to include all selected maps, irrespective of type.<br></div>- "Align region to selected raster" will align the region to a single selected raster<br><br></div>Just to be safe, I usually do this two-step adjustment: first set the extents, then set and/or align to the resolution.<br><br></div>Markus M<br><div><div><div><div><div><br>><br>> Ma<br>><br>> --<br>> Martin Landa<br>> <a href="http://geo.fsv.cvut.cz/gwiki/Landa">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>> <a href="http://gismentors.cz/mentors/landa">http://gismentors.cz/mentors/landa</a><br><br></div></div></div></div></div></div>