First of all I'd like to thank you for the advice on creating new location and map set, and on data transfer. All those problems are solved.
Now, I am trying to print grey scale maps on a SPARCprinter which is directly
connected to my workstation running Solaris 2.2. I tred ps.map to do this,
after answering a series questions and then I got the following.
set the printer and hit RETURN -->SPARCprinter
Segmentation fault (core dumped)
Would someone tell me what I am sopposed to do here and before hand ?
Or is possible to print a GRASS map on a SPARCprinter (this name is all I know
about the printer).
Thank you.
Ye Qi
===================================
Scripps Institution of Oceanography
University of California, San Diego
La Jolla, CA 92093-0220
As far as I remember there used to be a bug in the interactive version of
ps.map. I don't if it has been fixed. It is possible to run it with
command line arguments however. Here is a small script that I have used
to output simple raster maps. It shows the principle.
Happy Xmas to everyone !
Lars
#!/bin/sh
#
# ps.map.sh
#
# Script that run ps.map
#
# Author: Lars Schylberg ( larss@fmi.kth.se )
# Department of Photogrammetry
# Royal Inst. of Technolgy
# Stockholm, Sweden
#
# Date: 930216
# History of changes:
# #--------------------------------------------------------------------------
# Check if GRASS is running
#
test "$GISRC" || echo "GRASS is not running" || exit 2 #----------------------------------------------------------------------------
#
# Evaluate arguments
#
if [ $# != 2 ]
then
echo
echo Usage: `basename $0`
echo ' rast=mapname '
echo ' scale=mapscale '
echo
exit 1
fi
#
# parse input arguments
#
for i do
case $i in
rast*)
RAST=`echo $i | sed s/rast=//` ;;
ra*)
RAST=`echo $i | sed s/ra=//` ;;
r*)
RAST=`echo $i | sed s/r=//` ;;
scale=*)
SCALE=`echo $i | sed s/scale=//` ;;
sc=*)
SCALE=`echo $i | sed s/sc=//` ;;
s=*)
SCALE=`echo $i | sed s/s=//` ;;
*)
echo ""
echo "Unrecognized option: $i"
echo 'Options: rast=mapname '
echo ' scale=mapscale '
echo
exit 1
esac
done #-----------------------------------------------------------------------
# Check the input arguments
eval `g.findfile element=cell file=$RAST`
if [ ! "$file" ] ; then
echo "$RAST - clump cell file not found"
exit 2
fi
if [ $SCALE -lt 100 -o $SCALE -gt 1000000 ]
then
echo "This scale factor seems strange: 1:$SCALE "
exit 2
fi #-----------------------------------------------------------------------
eval `g.findfile element=cell_misc file=$RAST`
echo "Map: $RAST" > comments.file
if [ ! "$file" ] ; then
echo "" >> comments.file
cat $file/RULE.* >> comments.file
fi