[GRASS-dev] [GRASS GIS] #157: Wxgrass: Set computational region to the minimum necessary to enclose map data extent

#157: Wxgrass: Set computational region to the minimum necessary to enclose map
data extent
---------------------------------------+------------------------------------
Reporter: epatton | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Keywords: map display, region, zoom |
---------------------------------------+------------------------------------
As far as I'm aware, this functionality doesn't yet exist in wxgrass: Set
the computational region to that of the smallest possible box which will
completely enclose all non-null cells in the selected raster map.

The reason for this request is that sometimes setting the computational
region to that of a selected raster doesn't crop the region bounds to the
edges of raster cells; it seems to depend on the display window geometry.
See the attached screenshot - the computational region has been set to the
shown raster, but the region bounds seem to conform to the display window
bounds rather than the edge to existing data.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/157&gt;
GRASS GIS <http://grass.osgeo.org>

#157: Wxgrass: Set computational region to the minimum necessary to enclose map
data extent
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: map display, region, zoom
--------------------------+-------------------------------------------------
Changes (by martinl):

  * component: Python => wxGUI

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/157#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#157: Wxgrass: Set computational region to the minimum necessary to enclose map
data extent
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: martinl
      Type: enhancement | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: map display, region, zoom
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * platform: => Unspecified
  * cpu: => Unspecified
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

I have added new items to the popup menu (for raster layers):

  * Zoom to selected map (ignore NULLs)
  * Set computational region from selected map (ignore NULLs)

r31984 and r31985

Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/157#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#157: Wxgrass: Set computational region to the minimum necessary to enclose map
data extent
--------------------------+-------------------------------------------------
  Reporter: epatton | Owner: martinl
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: map display, region, zoom
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/157#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>