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

GRASS GIS trac at osgeo.org
Thu Apr 10 04:15:29 EDT 2008


#122: g.region should not duplicate the code of G3d_regionToCellHead ()
---------------------+------------------------------------------------------
 Reporter:  1gray    |       Owner:  grass-dev at 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>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list