[GRASS-dev] [GRASS GIS] #3426: Impossible to not compute shape statistics with i.segment.stats

#3426: Impossible to not compute shape statistics with i.segment.stats
---------------------+-------------------------
Reporter: tgrippa | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Linux |
---------------------+-------------------------
Hi,

It seems it is impossible to avoid computation of shape statistics using
i.segment.stats.

When unticking all 'area measurements' in the GUI or when not sepcifying
the 'area_measures' parameter in command line, the standards shape
statistics are anyway computed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426&gt;
GRASS GIS <https://grass.osgeo.org>

#3426: Impossible to not compute shape statistics with i.segment.stats
--------------------------+-------------------------
  Reporter: tgrippa | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by mlennert):

Replying to [ticket:3426 tgrippa]:
> Hi,
>
> It seems it is impossible to avoid computation of shape statistics using
i.segment.stats.
>
> When unticking all 'area measurements' in the GUI or when not sepcifying
the 'area_measures' parameter in command line, the standards shape
statistics are anyway computed.
>

The same is true for the raster measures. In the command line you can use
raster_statistics= and/or area_measures= (i.e. no measures after the '=')
to avoid calculation of the measures, but this is not possible in the GUI,
AFAICT. I don't know if there is a possibility to provide default answers
to a non-required parameter and allow to leave it empty in the GUI. The
easiest solution would be to not provide any default answers.

If someone has another idea, I would love to hear it.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3426: Impossible to not compute shape statistics with i.segment.stats
--------------------------+-------------------------
  Reporter: tgrippa | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by tgrippa):

Ok the solution with command line will make the deal for me since I'm not
using a lot the GUI. Thanks

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3426: Impossible to not compute shape statistics with i.segment.stats
--------------------------+-------------------------
  Reporter: tgrippa | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by mlennert):

Replying to [comment:2 tgrippa]:
> Ok the solution with command line will make the deal for me since I'm
not using a lot the GUI.

A generic solution that works everywhere would be nice. One possibility is
a flag for "no shape statistics" (for raster statistics none are
calculated if you do not provide a raster input map), but I want to avoid
parameter/flag inflation if possible

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3426: Impossible to not compute shape statistics with i.segment.stats
--------------------------+-------------------------
  Reporter: tgrippa | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by mlennert):

After some more thinking I decided to go for the additional flag.

Implemented in r71602/3. Please test.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#3426: Impossible to not compute shape statistics with i.segment.stats
--------------------------+-------------------------
  Reporter: tgrippa | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by mlennert):

* status: new => closed
* resolution: => fixed

Comment:

Closing this as it has worked in our tests so far. Please reopen if
necessary.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3426#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>