[GRASS5] g.region region= bug

Markus Neteler neteler at itc.it
Thu Jan 27 16:33:45 EST 2005


Hi,

I found an (at least undesired) error which prevents
me from setting the region to settings stored in other than 
current mapset (Spearfish example):

GRASS 6.0.cvs:~ > g.region region=county
ERROR: can't read region <county> in <PERMANENT>

GRASS 6.0.cvs:~ > g.gisenv |grep -i mapset
MAPSET='user1';

-> we are in user1, not in PERMANENT


GRASS 6.0.cvs:~ > g.list region
----------------------------------------------
region definition files available in mapset user1:
zoom_temp

region definition files available in mapset PERMANENT:
9961  county  subregion.NW

---------------
Related code of general/g.region/cmd/main.c :

	/* region= */
	if (name = parm.region->answer)
	{
		mapset = G_find_file ("windows", name, "");
		if (!mapset)
			G_fatal_error ("region <%s> not found", name);
		if (G__get_window (&window, "windows", name, mapset) != NULL)
			G_fatal_error ("can't read region <%s> in <%s>", name, mapset);
	}


I am not sure why it doesn't work as expected.

 Markus




More information about the grass-dev mailing list