Introduction
The p.in.labels program is a simple import tool for converting XYZ files to GRASS label files. The Z column of the XYZ file is read as the GRASS label. The program reads the XYZ file from either standard input (stdin) or an existing ASCII file.
The standard GRASS label options are available including size, fontsize, offset, color, justification, and rotation.
Example
To import the following XYZ labels from labels.txt into GRASS
572353.90 5406935.12 Label 1
579691.25 5423610.90 Label 2
601036.25 5421076.18 Station 5 — data description
601303.06 5435750.87 23
use the following command:
p.in.labels input=labels.txt output=label_file fontsize=8
d.labels labels=label_file
Building Source
- Download the source tarball here p.in.labels (37)
- Extract the tar file in the GRASS(v.6) source tree in the misc directory
- Change to the p.in.labels directory
- Run make to build the program
ToDo
- Add column field separator option
- Read size and rotation options from input file or stream
- Probably more …
Introduction
The r.out.colorbar program is a simple export tool for saving GRASS raster colorbars. The program uses GTK+ and CairoGraphics to handle the image output.

Vertical Colorbar

Horizontal Colorbar
The colorbar is saved at a user defined size (in pixels) and orientation. The user can choose between 3 output formats supported by Cairo.
The output formats are:
- PNG Image with transparent background
- PDF document
- Encapsulated Postscript (EPS)
Requirements
The GTK+ development package must be installed in order to build r.out.colorbar. The Makefile uses:
pkg-config --cflags gtk+-2.0
and
pkg-config --libs gtk+-2.0
Building Source
- Download the source tarball here r.out.colorbar (50)
- Extract the tar file in the GRASS(v.6) source tree in the raster directory
- Change to the r.out.colorbar directory
- Run make to build the program
ToDo
- Include category label support
- Include custom labeling
- Include units labeling
- Add font options
From the Rectification Control Points module in GTK+ GRASS the user can edit and manually enter control points.

Rectification Control Points
From this menu the user can:
- Turn control points on or off.
- Highlight the selected control point on the display.
- Check the Root Mean Square (RMS) error for the selected points.
- Manually enter known control points.
- Automatically project manually entered geographic coordinates to the users coordinate system (e.g. UTM).
This is a useful option for selecting geographic graticules on scanned maps.
The control points can be saved to a re-loadable XML points file. The XML file includes the image name, location and format, plus the complete list of control points. Using this format the image and control points can be easily re-loaded in a single step. The following is a sample control points XML file …
Read more…
A rectification Control Points module is added to the GTK+ GRASS Interface to make selecting and manipulating control points easier.

Image Rectification Window
The Control Points window opens in the GRASS Interface, as a special, split-pane, tabbed window. Users can select rectification control points for a GRASS raster file or an external image. Control points are saved to an XML file with optional output to a gdal_translate compatible file.
Features
The features for the Control Points Rectification module include:
- Control point selection for both GRASS rasters and external image files (TIFF, PNG, etc).
- Image file name and type, plus selected control points saved to a simple XML file.
- Control points selection from existing GRASS rasters and vectors or manually entered points.
- Control points manually entered from geographic coordinates or from the user’s projection coordinates (eg. UTM).
- Edit menu that displays RMS for selected points based on the chosen rectification order.
- Edit menu that lets users turn control points on or off.
- Predicted location for a selected point that displays in both panes to help users locate control points.
- Full zoom and pan functions for both panes in the rectification tab window.
Introduction
The r.in.mb GRASS/Mb-Stystem program is designed to import mbio compatible multibeam data directly into the GRASS GIS.
The program is a modified version of r.in.xyz. Instead of reading an ASCII XYZ file, r.in.mb reads an MB-System compatible list file as shown below.
/data1/MULTIBEAM_DATA/RAW2007/07_Pingos_JD245_RAW/0050_20070902_
154139_Petrel.all 56 1.0
/data1/MULTIBEAM_DATA/RAW2007/07_Pingos_JD245_RAW/0051_20070902_
155508_Petrel.all 56 1.0
/data1/MULTIBEAM_DATA/RAW2007/07_Pingos_JD245_RAW/0052_20070902_
161050_Petrel.all 56 1.0
…
Read more…
Introduction
The GTK+ GRASS Interface can be built with an optional port to the GRASS ogsf library providing 3-D visualization support. This requires the user to install GtkGLExt, an OpenGL extension to GTK+ 2.0.

Screen shot of the GRASS Spearfish data set in 3-D view
The 3D View is loaded as a special tab in the Map Display. The 3D View is created with the GRASS settings (i.e. region). The user can easily switch between loaded map views and the 3D View.
Read more…
Introduction
As a “proof of concept”, Tekmap Consulting tested the GTK+ toolkit as a possible tool for developing a graphical user interface (GUI) for the GRASS software. From that “proof of concept”, the GRASS Interface has continued to grow.

GTK+ Interface to GRASS
The basic concept for the GRASS Interface is to provide easy point-and-click access to GRASS files. The interface builds common GRASS commands around the selected file(s). For example, a single click to set region to raster(s), erase display, and draw.
The main window consists of two panes: a GRASS file list and a tabbed display window.
The GRASS file list, in the left pane, is always visible to the user as a collapsible tree view. The display window, in the right pane, consists of multiple tabbed pages. These tabbed pages let users easily switch between different regions, display sets, and 3-D views.
The interface was developed as Glade project written in GTK+. The GUI can be built with the optional Gtk OpenGL extension. The OpenGL extension provides a 3D interface to the GRASS ogsf library.
The interface has been tested and run on Linux (OpenSuse) and Windows (XP) operating systems.
Read more…