[GRASS-dev] [GRASS GIS] #122: g.region should not duplicate the code of G3d_regionToCellHead ()

#122: g.region should not duplicate the code of G3d_regionToCellHead ()
---------------------+------------------------------------------------------
Reporter: 1gray | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: trivial | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: |
---------------------+------------------------------------------------------
Currently, {{{g.region/main.c}}} includes almost the same code that's
already available as the {{{G3d_regionToCellHead ()}}} function.

Hence, I suggest the following change:

{{{
general/g.region/main.c (main): Use `G3d_regionToCellHead' instead of
copying the fields directly.
}}}

An (untested) patch is attached.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/122&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#122: g.region should not duplicate the code of G3d_regionToCellHead ()
----------------------+-----------------------------------------------------
  Reporter: 1gray | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: trivial | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by neteler):

If it works, consider to submit. Folks often just test once present in
SVN.

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/122#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#122: g.region should not duplicate the code of G3d_regionToCellHead ()
----------------------+-----------------------------------------------------
  Reporter: 1gray | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: trivial | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by neteler):

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

Comment:

Applied to trunk.

Markus

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