[GRASS-user] g.region error message

Dear grass users,

I am just compiled GRASS grass-6.4.0RC5 from source and I am
experiencing some trouble with g.region

g.region -p
ERROR: region for current mapset is invalid
       <north field missing>
       run "g.region"

I understand that this is bug that has been highlighted some months ago:

http://trac.osgeo.org/grass/ticket/696

I am using grass on Ubuntu 9.10. How can I fix this problem? I have
seen that there is a .diff file the ubuntu package web site I have no
idea how to apply the patch to fix the problem. Any help or reference
would be greatly appreciated!

thanks in advance!

Alessandro

On Wed, Jan 27, 2010 at 2:54 AM, Alessandro Bertan
<alessandro.bertan@googlemail.com> wrote:

Dear grass users,

I am just compiled GRASS grass-6.4.0RC5 from source and I am
experiencing some trouble with g.region

g.region -p
ERROR: region for current mapset is invalid
<north field missing>
run "g.region"

I understand that this is bug that has been highlighted some months ago:

http://trac.osgeo.org/grass/ticket/696

I am using grass on Ubuntu 9.10. How can I fix this problem? I have
seen that there is a .diff file the ubuntu package web site I have no
idea how to apply the patch to fix the problem. Any help or reference
would be greatly appreciated!

Can you please try with the latest 6.4.SVN snapshot?
http://grass.osgeo.org/grass64/source/snapshot/

... and report back?

Markus

On Wed, 27 Jan 2010, Markus Neteler wrote:

Can you please try with the latest 6.4.SVN snapshot?
http://grass.osgeo.org/grass64/source/snapshot/

... and report back?

Markus,

   I, too, was hit with this error earlier this afternoon. I was trying to
run r.slope.aspect on a 1m DEM and kept getting errors about an inability to
write a row. Suspecting the file was much too large and the results
unusable, I killed the process and found the same problem with g.region.

   This was after downloading the latest weekly snapshot of 6.4 from the
subversion repository, and rebuilding it here.

   Turns out that the WIND file for that mapset was empty; copying over the
WIND~ made no difference, so I ran 'g.region -d' and that fixed the problem.

Rich

Alessandro wrote:

I am just compiled GRASS grass-6.4.0RC5 from source and I
am experiencing some trouble with g.region

g.region -p
ERROR: region for current mapset is invalid
       <north field
missing>
       run "g.region"

I understand that this is bug that has been highlighted
some months ago:

http://trac.osgeo.org/grass/ticket/696

I am using grass on Ubuntu 9.10. How can I fix this problem?

probably the easiest/best way is just to grab the weekly 6.4.0 svn
code snapshot and compile that.

http://grass.osgeo.org/grass64/source/snapshot/

after that you may need to run 'g.region -d' to recover a working WIND
file.

I have seen that there is a .diff file the ubuntu package web site
I have no idea how to apply the patch to fix the problem.

patch -p0 < file.diff

Hamish