Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro like recording - export QGIS actions as Python code #13042

Open
qgib opened this issue Sep 5, 2010 · 5 comments
Open

Macro like recording - export QGIS actions as Python code #13042

qgib opened this issue Sep 5, 2010 · 5 comments

Comments

@qgib
Copy link
Contributor

qgib commented Sep 5, 2010

Author Name: Nathan Woodrow (@NathanW2)
Original Redmine Issue: 2982

Redmine category:python_plugins


The general idea is that QGIS would send the the Python code for each action (or just the more common ones) that it preforms. Code could be sent to file or console so that people could copy and paste it into a script and run it later. Of course you wouldn't do this all the time only when a certain trigger is set in the Python console or a config screen.

For example, say the user opens a table from a [[PostGIS]] database and sets its style to fill solid red. QGIS would output the needed Python code to open the table, add it to the map canvas and change its color.

[[MapInfo]] does this with [[MapBasic]] and I know it was handy for me to learn how to use the [[MapBasic]] APIs when I first started by just watching what it generated.

I'm not sure how hard this would be or even if anyone else thinks it's worth having but could be handy for people to learn the QGIS python API and help with writing scripts.

@qgib
Copy link
Contributor Author

qgib commented Jul 8, 2012

Author Name: Alister Hood (@AlisterH)


It seems there is a Python macro recorder for Blender - maybe this could provide some inspiration/code.


  • pull_request_patch_supplied was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Jul 8, 2012

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id removed Borys Jurgiel

@qgib
Copy link
Contributor Author

qgib commented Oct 6, 2012

Author Name: Pirmin Kalberer (Pirmin Kalberer)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@yportier
Copy link

Perhaps the Layer Styling tab could be a good place to start ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants