I've just imported several vector files using m.in.e00 (thanks, Michel!!)
and the display shows me only a small portion of the coverage area. So, I
tried to use g.region to expand the boundary, but without success.
First, I selected "set from vector map" and gave it the name "roads".
Nothing changed. Second, I tried creating a new region. When I entered the
name, "county", for the new region, this is what I see:
Enter name for region to be created
Enter 'list' for a list of existing region files
Enter 'list -f' for a list with region values
Hit RETURN to cancel request
county
<county>
ERROR: default region H@H@et
I know this is telling me something that I should know, but I don't know
just what that is. Help greatly appreciated.
Thanks,
Rich
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
+ 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
Making environmentally-responsible mining happen.
Rich Shepard wrote:
I've just imported several vector files using m.in.e00 (thanks, Michel!!)
and the display shows me only a small portion of the coverage area. So, I
tried to use g.region to expand the boundary, but without success.
First, I selected "set from vector map" and gave it the name "roads".
Nothing changed. Second, I tried creating a new region. When I entered the
name, "county", for the new region, this is what I see:
Enter name for region to be created
Enter 'list' for a list of existing region files
Enter 'list -f' for a list with region values
Hit RETURN to cancel request
> county
<county>
ERROR: default region H@H@et
Duh. From src/libes/gis/get_window.c:
int G_get_default_window ( struct Cell_head *window )
{
char *err;
if (err = G__get_window (window,"","DEFAULT_WIND","PERMANENT"))
{
G_free (err);
G_fatal_error ("default region %s", err);
}
return 1;
}
Quick fix: remove the call to G_free() and re-compile. By itself, that
won't make g.region work, but it should give you a meaningful error
message.
BTW, there's another occurence of that bug in the same file, in
G_get_window(). I'll commit the necessary changes to CVS.
--
Glynn Clements <glynn.clements@virgin.net>