Hi,
2014-05-28 23:09 GMT+02:00 <svn_grass@osgeo.org>:
Author: hcho
Date: 2014-05-28 14:09:09 -0700 (Wed, 28 May 2014)
New Revision: 60563
Modified:
grass/trunk/raster/r.distance/defs.h
grass/trunk/raster/r.distance/main.c
grass/trunk/raster/r.distance/parse.c
grass/trunk/raster/r.distance/report.c
Log:
r.distance: -s/-r sort by distance implemented
[...]
+ sort = G_define_flag();
+ sort->key = 's';
+ sort->description = _("Sort by distance in ascending order");
+
+ revsort = G_define_flag();
+ revsort->key = 'r';
+ revsort->description = _("Sort by distance in descending order");
+
what about one option instead of two flags? See eg. `r.stats sort=`.
Would nice to decrease the number of mutually exclusive options rather
than increasing...
Martin
--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
Makes sense. Changing now.
On May 28, 2014 5:21 PM, “Martin Landa” <landa.martin@gmail.com> wrote:
Hi,
2014-05-28 23:09 GMT+02:00 <svn_grass@osgeo.org>:
Author: hcho
Date: 2014-05-28 14:09:09 -0700 (Wed, 28 May 2014)
New Revision: 60563
Modified:
grass/trunk/raster/r.distance/defs.h
grass/trunk/raster/r.distance/main.c
grass/trunk/raster/r.distance/parse.c
grass/trunk/raster/r.distance/report.c
Log:
r.distance: -s/-r sort by distance implemented
[…]
- sort = G_define_flag();
- sort->key = ‘s’;
- sort->description = _(“Sort by distance in ascending order”);
- revsort = G_define_flag();
- revsort->key = ‘r’;
- revsort->description = _(“Sort by distance in descending order”);
what about one option instead of two flags? See eg. r.stats sort=
.
Would nice to decrease the number of mutually exclusive options rather
than increasing…
Martin
–
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa