[GRASS-dev] [GRASS GIS] #3680: [PATCH] r.object.geometry: add output of mean coordinates of objects - difference to r.mapcalc/r.univar output

GRASS GIS trac at osgeo.org
Thu Oct 11 01:37:33 PDT 2018


#3680: [PATCH] r.object.geometry: add output of mean coordinates of objects -
difference to r.mapcalc/r.univar output
--------------------------+------------------------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Addons       |    Version:  unspecified
Resolution:               |   Keywords:  r.object.geometry cell coordinates
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+------------------------------------------------

Comment (by marisn):

 Comments in the code of r.mapcalc
 (https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.mapcalc/xcoor.c#L27):

 {{{
 x() easting at center of column
 y() northing at center of row
 }}}

 And the code itself:

 {{{
 x = Rast_col_to_easting(0.5, &current_region2);
 y = Rast_row_to_northing(current_row + 0.5, &current_region2);
 }}}

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



More information about the grass-dev mailing list