[GRASS-user] RE:grass confignation

In fact I have create two folder nlocation and nmapset in the hiberarchy of (nlocation/nmapset),then I start the grass with the gui ,I got the error messgae that I am mot clear?..

  1. I want to know the relation of the grassrc file and the contere location or mapset ? Which should be created frist?
  2. If I do my process in the gui ,then should I do the g.region process?
  3. Some data which can be displayed in the grass gui can not exported perfectly,most of them contains only black blank after exproted…
    Thanks!

On Tue, Jun 9, 2009 at 9:36 AM, maven apache<apachemaven0@gmail.com> wrote:

In fact I have create two folder nlocation and nmapset in the hiberarchy of
(nlocation/nmapset),then I start the grass with the gui ,I got the error
messgae that I am mot clear?....

Please (re)post the error.

1) I want to know the relation of the grassrc file and the contere location
or mapset ? Which should be created frist?

The grassrc is created by GRASS.

2) If I do my process in the gui ,then should I do the g.region process?

You can control g.region either from command line of through the GUI.

3) Some data which can be displayed in the grass gui can not exported
perfectly,most of them contains only black blank after exproted.....
Thanks!

If you speak about raster maps then first run

g.region rast=yourmap

then export. Otherwise the current region part is exported which
does not necessarily match the map.

Markus

Hi:Markus Neteler

Thanks for your reply.
I have upload the error information as a annex.

The following is my working,I wonder if you can give me some advises:

We provide a web server for other clients to do some geoprocessing.Here suppose I have two process A and B. Both of them are designed to handle raster data(tiff). So in each of them I have to do the following steps:

  1. import tiff to grass format
  2. handle the tiff and get the grass result
  3. export the grass result to tiff
    I am now confusing with the data import and export.
    As what you have side,I should do the same work in each process (A and B) – g.region… r.buffer…export.
    So the problem occurs,the default location and mapset,should I define the respective location and mapset in different process(A and B)? If so I should write a grassrc file for each process?
    I have used a xml confignation file to get the grass info :
d:\My Documents\GIS DataBase

C:\Documents and Settings\Administrator.grassrc6

PERMANENT
spearfish60

And now it seems I have made a very stupid mistake.
So I want to know how to make new location and mapset and the grassrc file in my program for each process?

Maven
2009/6/10

2009/6/10 Markus Neteler <neteler@osgeo.org>

On Tue, Jun 9, 2009 at 9:36 AM, maven apache<apachemaven0@gmail.com> wrote:

In fact I have create two folder nlocation and nmapset in the hiberarchy of
(nlocation/nmapset),then I start the grass with the gui ,I got the error
messgae that I am mot clear?..

Please (re)post the error.

  1. I want to know the relation of the grassrc file and the contere location
    or mapset ? Which should be created frist?

The grassrc is created by GRASS.

  1. If I do my process in the gui ,then should I do the g.region process?

You can control g.region either from command line of through the GUI.

  1. Some data which can be displayed in the grass gui can not exported
    perfectly,most of them contains only black blank after exproted…
    Thanks!

If you speak about raster maps then first run

g.region rast=yourmap

then export. Otherwise the current region part is exported which
does not necessarily match the map.

Markus

(attachments)

ddd.JPG