[GRASS-dev] [GRASS GIS] #2121: v.rast.stats: allow choice of statistics
GRASS GIS
trac at osgeo.org
Wed Jan 15 00:22:02 PST 2014
#2121: v.rast.stats: allow choice of statistics
--------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.rast.stats | Platform: Unspecified
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Comment(by mlennert):
Replying to [comment:2 lucadelu]:
> I added a ''method'' option to choose the methods to save in the
attribute table in r58726.
This is great, thanks ! Just one problem: it fails at lines 255-256 with
the dbf driver as colnames get truncated, but your variable names are
full, and so
{{{
variable = colname.replace("%s_" % colprefix, '')
i = variables[variable]
}}}
leads to a key error since 'variable' does not exist in 'variables'. A
solution might be to use a dictionary linking variable names to colnames ?
> I would like also to remove ''-e'' flag and add the methods calculated
by extended statistics to the ''method'' 's options, what do you think?
Sounds reasonable to me.
Moritz
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2121#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list