[GRASS-dev] possible elements for g.findfile?

Hi

What are the all possible elements for g.findfile? I know ho to check
for vector (vector) and raster (cell), but i have no idea how to check
for region definitions.

I'd like to document this in the manual once I understand it.

Maciek

Maciej Sieczka wrote:

What are the all possible elements for g.findfile? I know ho to check
for vector (vector) and raster (cell), but i have no idea how to check
for region definitions.

I'd like to document this in the manual once I understand it.

There is no fixed list; any subdirectory of the mapset directory is a
valid element name.

You can find a list of "standard" element names in the file
$GISBASE/etc/element_list. This is the file which
g.remove/g.rename/g.copy use to determine which files need to be
deleted/renamed/copied for a given entity type (vectors are hardcoded
as a special case).

The first field on each line is the directory name, the second is the
option name, so e.g.

  windows:region:region definition:region definition files

specifies that "g.remove region=foo" removes the file windows/foo
relative to the mapset directory.

--
Glynn Clements <glynn@gclements.plus.com>

What are the all possible elements for g.findfile? I know ho to check
for vector (vector) and raster (cell), but i have no idea how to check
for region definitions.

G63> g.findfile elem=windows file=previous_zoom
name='previous_zoom'
mapset='user1'
fullname='previous_zoom@user2'
file='/home/hamish/grassdata/spearfish60/user1/windows/previous_zoom'
G63>

Hamish