Note: A new GRASS GIS stable version has been released: GRASS GIS 7.6, available here.
Updated manual page: here
List of available display drivers:
Lets start with simple example of Python script called render.py:
#!/usr/bin/env python import os import sys import grass.script as grass from grass.script import task as gtask os.environ['GRASS_RENDER_IMMEDIATE'] = 'default' os.environ['GRASS_RENDER_FILE'] = 'output.png' cmd, dcmd = gtask.cmdstring_to_tuple(sys.argv[1]) grass.run_command('d.text', text="Test of GRASS_RENDER_COMMAND redirection") os.environ['GRASS_RENDER_FILE_READ'] = 'TRUE' grass.run_command(cmd, **dcmd)
export GRASS_RENDER_COMMAND=render.py
d.vect roadsmajor
Available at: Display drivers source code (history)
Note: A new GRASS GIS stable version has been released: GRASS GIS 7.6, available here.
Updated manual page: here
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
© 2003-2019 GRASS Development Team, GRASS GIS 7.2.4svn Reference Manual