[GRASS-dev] [GRASS GIS] #2917: r.mapcalc neighbour modifier uses wrong row

GRASS GIS trac at osgeo.org
Sat Feb 27 02:23:08 PST 2016


#2917: r.mapcalc neighbour modifier uses wrong row
--------------------------+---------------------------------
  Reporter:  marisn       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  blocker      |  Milestone:  7.0.4
 Component:  Raster       |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  r.mapcalc
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by marisn):

 Replying to [comment:4 glynn]:
 > In the first case, a single command uses two distinct row offsets, which
 causes the row cache to be used. In the second case, each command only
 uses a single row offset, so the row cache isn't used.
 >
 > The precise test for whether the row cache is used is whether the number
 of cached rows is greater than one and less than or equal to 8. The number
 of cached rows is the maximum offset minus the minimum offset plus one.
 See setup_map() in raster/r.mapcalc/map.c.

 If I understood correctly, the issue was triggered by any mapcalc
 expression containing two to eight references to same map (MAP[n,x] and
 MAP[m,x], ...) where n!=m.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2917#comment:6>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list