[GRASSLIST:4832] Re: layout tool?
Glynn Clements
glynn.clements at virgin.net
Fri Oct 25 05:55:53 EDT 2002
Jeff D. Hamann wrote:
> I've got to mass produce hard copies of some maps (data over time, lots of
> variables, etc). I've added a simple ps.map script input generation in a
> script:
>
>
> echo "verbose 2" >> paint.map.test
> echo "header" >> paint.map.test
> echo " font Courier" >> paint.map.test
> echo " fontsize 12" >> paint.map.test
> echo " end" >> paint.map.test
> echo "scale 8 inches" >> paint.map.test
> echo "rast $1.$2.$3.$5.$6" >> paint.map.test
> echo "colortable y" >> paint.map.test
> echo " cols 3" >> paint.map.test
> echo " font Courier" >> paint.map.test
> echo " fontsize 12" >> paint.map.test
> echo " nodata n" >> paint.map.test
> echo " end" >> paint.map.test
> echo "vect testshed" >> paint.map.test
> echo " width 1" >> paint.map.test
> echo " end" >> paint.map.test
> echo "vlegend" >> paint.map.test
> echo " where 4.5 0" >> paint.map.test
> echo " font Courier" >> paint.map.test
> echo " fontsize 12" >> paint.map.test
> echo " end" >> paint.map.test
> echo "mapinfo" >> paint.map.test
> echo " font Courier" >> paint.map.test
> echo " fontsize 12" >> paint.map.test
> echo " color black" >> paint.map.test
> echo " end" >> paint.map.test
> echo "end" >> paint.map.test
I don't have an answer for your actual question. However, I'd like to
suggest using a "here document" for situations similar to the above.
I.e.
cat >> paint.map.test <<EOF
verbose 2
header
font Courier
fontsize 12
end
scale 8 inches
rast $1.$2.$3.$5.$6
colortable y
cols 3
font Courier
fontsize 12
nodata n
end
vect testshed
width 1
end
vlegend
where 4.5 0
font Courier
fontsize 12
end
mapinfo
font Courier
fontsize 12
color black
end
end
EOF
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list