<div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I want to use ps.map in python to create *.eps maps from a GRASS vector line using some interactive mapping instructions, i.e. I don't want to save my mapping instructions into a *.txt file but rather provide the instructions as a python string.</div><div><br></div><div>For example my mapping instructions:</div><div><div>map_instructions = """</div><div># my instructions</div><div>vlines my_lines</div><div>  type line</div><div>  layer 2</div><div>  color color</div><div>  rgbcolumn rgb_column</div><div>  width 2</div><div>  end</div><div>"""</div><div># And now I'd like to use this string as input to ps.map within a python command:</div><div>grass.run_command("ps.map",</div><div>  flags="e",</div><div>  input="-",</div><div>  stdin_=map_instructions,</div><div>  output="myoutput.eps")</div></div><div><br></div><div>However, stdin is not the correct way to specify this...what would be the correct way to avoid saving the instructions as text but rather using the python text-string as direct input to ps.map within python? At least the GUI of ps.map allows to use interactive input for mapping instructions...</div><div>Any suggestions?</div><div><br></div><div>Cheers,</div><div>Johannes</div><div><br></div></div></div>