Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run a script from the GRASS WiKi to create a simple map using I'm confused because it's generating an error that the output was not set, when it appears to me that it is set at the beginning of the script. The script and error follow. The first code box contains the contents of the file, which is referenced as the input value in the second code box.

# Simple example using the Spearfish dataset
g.region rast=elevation.10m << EOF
paper us-letter
scale 1:120000
raster elevation.10m
  where 2 6.75
text 50% -7% Spearfish County, ND (Mount Rushmore)
  fontsize 16
  where 4.5 7.25
vlines roads
  where label ~ 'highway' OR label = 'interstate'
  color grey
vpoints archsites
  symbol basic/triangle

The command for running the script and the error it generates are below:

ERROR: Required parameter <output> not set:
    (PostScript output file)

UPDATE: Based on ShaunLangley's comment, I tried This seems to have started in interactive mode and I was able to enter the rest of the script one line at a time. That did create a map as a postscript file, so I'm headed in the right direction. I'll close this thread as solved and open a new one more targeted on the question of how to run the commands as a script.

share|improve this question
You did not give the Wiki URL nor your GRASS version... – markusN Mar 21 '13 at 23:46
up vote 1 down vote accepted

the function requires you specify output. The example you have:


doesn't specify the output variable. I'm not sure what the distinction between the code boxes is. The former should work because the input raster is defined with "raster" and output defined at the top. It looks like you're trying to replicate an example; is this correct?

Perhaps you could try: input=elevation.10m

You can specify the additional options as well just as the code example did.

share|improve this answer
I should have specified that the second code box is the content of the file, which is the input value in the first code box. Unless I'm misunderstanding the input command, the output should be correctly specified in that file. – Gregory Mar 21 '13 at 21:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.