[GRASS-dev] Re: [GRASS GIS] #1597: r.topidx ERROR current region resolution

GRASS GIS trac at osgeo.org
Tue Feb 28 14:00:38 EST 2012


#1597: r.topidx ERROR current region resolution
----------------------+-----------------------------------------------------
 Reporter:  madi      |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  normal    |   Milestone:  6.5.0                    
Component:  Raster    |     Version:  svn-develbranch6         
 Keywords:  r.topidx  |    Platform:  Linux                    
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------

Comment(by hamish):

 I think the old message could be confusing, the new one is

 {{{
 G_fatal_error(_("The current region resolution [%s x %s] is finer "
                  "than the input map's resolution [%s x %s]. "
                 "The current region resolution must be identical "
                 "to, or coarser than, the input map's resolution."),
 }}}

 with ew x ns resolution shown with G_format_resolution() instead of %.2f
 which always rounds away the extra digits. Can you test and see if the new
 version gives a more useful error when 'g.region res=20 -a' ?


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1597#comment:11>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list