Tips

QGIS enabled with GRASS support

If you want to use QGIS with GRASS support you can open QGIS in two ways: inside GRASS with script "Open QGIS application" under "Xtns" menu or you can enter the path to GRASS binary at the first run of QGIS. If you have to installed GrassGIS in /Applications you can enter this path when QGIS requires it:

    /Applications/GrassGIS.app/Contents/Resources/app/grass-6.3.0

With this second way QGIS has all GRASS tools enabled and you only open QGIS application without to open GRASS.


Open remote GRASS from xterm - GRASS X11 only

You can open Grass in a remote computer (Mac OS X or Linux machine) from your local Mac. This way is good for a workgroup (example, a school) in the same location or if you want to see your project from a remote location. You have to install Grass on a remote computer and it's not need in a local Mac. X11 only is required in your Mac or in your local computer.

Use these instructions between two Mac in a network:

  1. you have to create an account (user and password) in a remote computer like a normal Mac OS X (take the IP address or name of this remote computer: your_remote_ipaddress_computer);

  2. install Grass in a remote computer (install this version in a remote Mac OS X and run GrassGIS one first time).

    ATTENTION LEOPARD USER: you have to enable X11Forwarding in the remote computer. Example if you have a remote Mac OS X edit this file in the remote computer: "/etc/sshd_config" and change this row:

    #X11Forwarding no

    X11Forwarding yes

  3. go to local Mac (take the IP address or name of your computer: your_local_ipaddress_mac).


Open X11 in your local Mac and in a new xterm window enter:

    local_mac % /usr/X11R6/bin/xhost +your_remote_ipaddress_computer
       ... the remote computer with Grass is added to available computers list

    local_mac % ssh -Y user@your_remote_ipaddress_computer
       ... digit the password to enter in the remote computer (your account).

    ATTENTION LEOPARD USER: skip this next command. It's only for Tiger users. Display command is already enabled in Leopard.
    remote_com % export DISPLAY=your_local_ipaddress_mac:0.0
       ... this command sends all X11 windows to your local Mac

    remote_com % /Applications/GrassGIS.app/Contents/Resources \ /app/x11/grass-6.3.0/grass63
       ... remote GRASS is running and you see the remote "grassdata" folder.

Create new LOCATION from startup-screen in Grass

Open Grass. In Grass Startup window window select EPSG codes. You have a new window. Enter the name in theName of new location box (example: new_project). Check your Path to the EPSG-codes file:
/Applications/GrassGIS.app/Contents/Resources/grasslib/share/proj/epsg
and press Select button in EPSG code number of projection row for viewing the list. You'll see a long list: find your projection and the code number on the left side of the list. Press OK and enter this code number in EPSG code number of projection box (example: 23032). Press Close button and you return in the empty box: enter the number 23032 and now press Define Location button. You have created a new LOCATION with a new projection. More info at EPSG site.

Printing and/or PDF/PS creation in Grass

  • open Grass, work with your layers and display selected layers;
  • choose Print icon in GIS Manager window;
  • in the new Print/Plot window push Preview button and, if ESP Ghostscript is installed, you'll see the preview in a new window;
  • now you can create a PDF selecting PDF file (or PS file), Browse the name, selecting Paper format or Custom width in inch;
  • push Print button and you'll have your PDF (or PS) file at the maximum resolution;
  • for printing select Printer and insert in the box lpr -Pname_of_printer. The name_of_printer is the Que Name in Printer Configuration, Show Info for your printer;
  • a print with more features is possible with a external script file: see the help.

update 14-Nov-08

ENEA 2004-2009