[GRASS-user] g.region, problem with projection

Hi all,

I have problems with setting g.region - I always get an error message like the follows:

region for current mapset <projection field missing>

However, I defined the projection globally in the PERMANENT mapset of my location.

I am using grass 6.4 on the Mac with the frameworks of William Kyngesbury. The PROJ framework is also installed and I can browse the list with epsg codes.

Anyone knows what could be wrong - why g.region is complaining about the missing projection field?

Thanks a lot,
Andreas

--
--
Andreas Neumann
Switzerland
Email: a.neumann@carto.net

Web: http://www.carto.net/neumann/
SVG Examples: http://www.carto.net/papers/svg/samples/
SVG.Open: http://www.svgopen.org/

Andreas Neumann wrote:

I have problems with setting g.region - I always get an error message
like the follows:

region for current mapset <projection field missing>

This error message indicates a missing "proj" key in the region
definition (the WIND file, or a named region specified by the
WIND_OVERRIDE environment variable, or the contents of the
GRASS_REGION environment variable).

The "proj" key is the first one to be tested, so if the region
definition is completely empty, you would also get the above error.

First, check whether either WIND_OVERRIDE or GRASS_REGION are set, by
examining the output from the "env" command. Assuming that they aren't
examine the WIND file in the current mapset. A typical WIND file
should look like:

proj: 1
zone: 13
north: 4928010
south: 4913700
east: 609000
west: 589980
cols: 634
rows: 477
e-w resol: 30
n-s resol: 30

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

Hi Glynn,

Here is what my WIND file looks like:

proj: 99
zone: 0
north: 1
south: 0
east: 743000
west: 707000
cols: 36000
rows: 1
e-w resol: 1
n-s resol: 1
top: 206000
bottom: 182000
cols3: 36000
rows3: 1
depths: 24000
e-w resol3: 1
n-s resol3: 1
t-b resol: 1

-------

When creating the location and MAPSET I used epsg 21781 (the Swiss coordinate system).

Then I checked the output of the env command. There is neither a WIND_OVERRIDE environment variable set, nor a GRASS_REGION variable.

Do you see something wrong in my WIND file?

Thanks,
Andreas

Glynn Clements wrote:

Andreas Neumann wrote:

I have problems with setting g.region - I always get an error message like the follows:

region for current mapset <projection field missing>
    
This error message indicates a missing "proj" key in the region
definition (the WIND file, or a named region specified by the
WIND_OVERRIDE environment variable, or the contents of the
GRASS_REGION environment variable).

The "proj" key is the first one to be tested, so if the region
definition is completely empty, you would also get the above error.

First, check whether either WIND_OVERRIDE or GRASS_REGION are set, by
examining the output from the "env" command. Assuming that they aren't
examine the WIND file in the current mapset. A typical WIND file
should look like:

proj: 1
zone: 13
north: 4928010
south: 4913700
east: 609000
west: 589980
cols: 634
rows: 477
e-w resol: 30
n-s resol: 30

--
--
Andreas Neumann
Böschacherstrasse 6
CH-8624 Grüt (Gossau ZH)
Switzerland
Phone: ++41-44-2736668
Email: a.neumann@carto.net

Web: http://www.carto.net/neumann/
SVG Examples: http://www.carto.net/papers/svg/samples/
SVG.Open: http://www.svgopen.org/

Andreas Neumann wrote:

Here is what my WIND file looks like:

proj: 99
zone: 0
north: 1
south: 0
east: 743000
west: 707000
cols: 36000
rows: 1
e-w resol: 1
n-s resol: 1
top: 206000
bottom: 182000
cols3: 36000
rows3: 1
depths: 24000
e-w resol3: 1
n-s resol3: 1
t-b resol: 1

-------

When creating the location and MAPSET I used epsg 21781 (the Swiss
coordinate system).

Then I checked the output of the env command. There is neither a
WIND_OVERRIDE environment variable set, nor a GRASS_REGION variable.

Do you see something wrong in my WIND file?

No.

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

Andreas Neumann wrote:

Here is what my WIND file looks like:

....

cols: 36000
rows: 1
e-w resol: 1
n-s resol: 1

....

Do you see something wrong in my WIND file?

I don't know if it is part of your problem, but your n,s,e,w and
resolution settings seem fairly out of whack.

try to keep rows x cols less than about 5000 x 5000 but greater than
about 100 x 100 to start out with.

Hamish