Subsections

2 Creating a new location

1 Defining a new location interactively

Sometimes considered a tricky process, we'll next learn to create our own GRASS locations from scratch. Remember, you can generate new locations from existing datasets automatically (see above). But it can be useful to know how to do it interactively. A major difference between GRASS and other GIS is that GRASS wants the projection definitions before the user can work in a location. The advantage is that things are well defined and a mess of projection mixtures is avoided.

First you start GRASS:

     grass60

The welcome screen shows a couple of buttons. Click on the Create New Location button, which will take you to a text screen (someday there will be a graphical interface for this). In this screen you enter a new location name (not containing white space), and then continue by pressing ``ESC''-``RETURN'' - i.e. press (NOT hold) the ESC key, and then press the RETURN key on your keyboard.

Below we outline the general procedure:

You will need to assign parameters to the location such as the coordinate system and datum you want to use, the project area's boundary coordinates, and the default resolution for raster data:

Now the project area, i.e. the location including a mapset, has been created. You have ``arrived'' in the GRASS system and can start working within this new location. Now you can verify the projection settings with:

     g.proj -w

If you read this section without actually defining a new location, you may try this command in the Spearfish location.

2 Creating your own location from EPSG code

Figure 13: GRASS startup screen: Creating locations from EPSG code
\includegraphics[width=0.75\textwidth]{finalpix/grass6_startup_epsg.eps}

As an alternative, to create your own location in an quick and easy way, you can use the EPSG projection codes. Projections and national grid systems have been standardized by the European Petroleum Survey Group (EPSG, http://www.epsg.org), giving an unique ID code to each reference system. In GRASS, they are based on the PROJ4 installation which provides an EPSG code table. Clicking on the button ``Create location from EPSG'' brings you to a new window (see figure 13). You will enter a new location name and the EPSG code number. If you don't know the EPSG code, you can make use of the button that lists the PROJ4-EPSG file. Be warned that sometimes geodetic datum definitions are missing here. They can be added later within the GRASS system, or you are asked in an additional window to select a datum from the available list. After entering the necessary information, click on ``OK''. This will generate a new GRASS location. After that GRASS closes itself, and you have to restart it to select the newly created location. Select the location and mapset, then click the ``Enter GRASS'' button to launch the system.


© 2005, GDF Hannover bR - Solutions for spatial data analysis and remote sensing