#2475: g.findfile type/element support not clear
--------------------------------------------------------------------------------------+
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: g.findfile, find_file, types, elements, cell, fcell, dcell, rast, rast3d | Platform: Unspecified
Cpu: Unspecified |
--------------------------------------------------------------------------------------+
There is some issue in G7:g.findfile interface or implementation.
If you list elements, `rast` is present:
{{{
GRASS > g.findfile -l
List of available elements:
rast (raster map(s))
rast3d (3D raster map(s))
vect (vector map(s))
oldvect (old (GRASS 5.0) vector map(s))
asciivect (ASCII vector map(s))
labels (paint label file(s))
region (region definition(s))
region3d (3D region definition(s))
group (imagery group(s))
}}}
But look for the `elevation` with `element=rast` and you get nothing:
{{{
GRASS > g.findfile element=rast file=elevation
name=
mapset=
fullname=
file=
}}}
`element=cell` works as well as `element=fcell`:
{{{
GRASS > g.findfile element=cell file=elevation
name='elevation'
mapset='PERMANENT'
fullname='elevation@PERMANENT'
file='.../PERMANENT/cell/elevation'
GRASS > g.findfile element=fcell file=elevation
name='elevation'
mapset='PERMANENT'
fullname='elevation@PERMANENT'
file='.../PERMANENT/fcell/elevation'
}}}
What is the right behavior? It seems that there is a difference between
element and type, is this true? What is appropriate for `g.findfile`? What
would be the value for `file` key if `g.findfile` would support
`type=rast` etc. instead of `element=cell|fcell|dcell`? What about 3D
rasters?
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2475>
GRASS GIS <http://grass.osgeo.org>