[GRASS-dev] [GRASS GIS] #2355: g.mlist add parameter to check region

#2355: g.mlist add parameter to check region
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: unspecified
Keywords: g.mlist | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Hi devs,

I would like to have a parameter in g.mlist to check if maps (raster,
vector ecc) are inside a region or not. It should work with the other
parameters like pattern and exclude.

The workflow could be something like this

{{{
#user save the computational region
g.region save=mytest

#launch g.mlist with mytest region
g.mlist type=rast patter=mypattern* region=mytest
}}}

In this example all the maps with pattern ''mypattern'' and inside (I
think the GIS operation could be touches, or using different one with
another parameter operator like for v.select) the region ''mytest''

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

#2355: g.mlist add parameter to check region
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: unspecified
Keywords: g.mlist | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hcho):

I think if you want true "data overlap" with a region, it can take too
long to find maps inside the region depending on the number of cells or
features, the number of maps, and the size of the input region and
resolution.

If it's enough to find maps whose region overlaps with the given region,
performance will be ok, but it doesn't guarantee that selected maps have
any cells or features inside the region.

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

#2355: g.mlist add parameter to check region
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: unspecified
Keywords: g.mlist | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lucadelu):

Replying to [comment:1 hcho]:
>
> If it's enough to find maps whose region overlaps with the given region,
performance will be ok, but it doesn't guarantee that selected maps have
any cells or features inside the region.

it's enough to find maps whose region overlaps with the given region,
after I could cut them using the computational region if needed

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

#2355: g.mlist add parameter to check region
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: unspecified
Keywords: g.mlist | Platform: All
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hcho):

Implemented in r61026. Please test it.

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

#2355: g.mlist add parameter to check region
--------------------------+-------------------------------------------------
  Reporter: lucadelu | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.1.0
Component: Default | Version: unspecified
Resolution: fixed | Keywords: g.mlist
  Platform: All | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by lucadelu):

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

Comment:

Replying to [comment:3 hcho]:
> Implemented in r61026. Please test it.

Thanks a lot! It work perfectly with raster and vector.

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