[GRASS-user] Python placeholder (%d) in stdin statement of db.execute

Glynn Clements glynn at gclements.plus.com
Thu Apr 11 03:47:58 PDT 2013


Johannes Radinger wrote:

> Thank you Hamish, including the option "input=-" in the python line (for
> GRASS7) solved the problem.

Why read the command from stdin rather than using sql=...? E.g.:

grass.write_command("db.execute", sql = "UPDATE my points SET prob=100")

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list