Skip to main content

Timeline for Converting Python script for QGIS?

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Dec 3, 2015 at 20:17 history tweeted twitter.com/StackGIS/status/672510036925640704
Nov 29, 2015 at 7:40 history edited PolyGeo CC BY-SA 3.0
deleted 44 characters in body; edited tags; edited title
Nov 19, 2015 at 18:43 vote accept Bernd V.
Nov 18, 2015 at 17:54 answer added ymirsson timeline score: 3
Nov 18, 2015 at 15:12 comment added ymirsson nope. you want to run a shell command and fetch its stdout. no way around the subprocess module in python ;)
Nov 18, 2015 at 14:22 comment added Bernd V. @ymirsson Thanks for your comment. As I already stated, I'm a complete beginner with all this. Is there a way to replace those subprocess.call stuff by sth else? The script doesn't have to look like it does now, but just do what it is intended for, but preferably more conveniently through a QGIS Processing script. Sorry, I'm still really blond :)
Nov 18, 2015 at 13:55 comment added ymirsson well, the script heavily depends on the pipe-operator. so i guess instead of sending everything just to stdout via subprocess.call() you need to pipe them back into a variable (take the table names as example) and execute the sql-commands via executescript() from within python.
Nov 18, 2015 at 12:53 history edited Bernd V. CC BY-SA 3.0
typos
Nov 18, 2015 at 8:52 history asked Bernd V. CC BY-SA 3.0