[GRASS-dev] Re: [GRASS GIS] #1597: r.topidx ERROR current region
resolution
GRASS GIS
trac at osgeo.org
Tue Feb 28 15:53:42 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 madi):
Replying to [comment:11 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
ERROR: The current region resolution [20 x 20] is finer than the input
map's resolution [20 x 20.0012809]. The current region resolution must be
identical to, or coarser than, the input map's resolution.
This looks way better to me. Thanks a lot.
madi
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1597#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list