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

Glynn Clements glynn at gclements.plus.com
Thu Oct 19 11:18:08 EDT 2006

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 at gclements.plus.com>

More information about the grass-dev mailing list