Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 48798
3 votes
Accepted

Installing packages into OSGeo4W64-QGIS-Python and not in Standard Python installation on Wi...

I think this is more of a Python-specific question than strictly GIS but you should be able to just reference the specific version of Python into which you want to install via an absolute path referen …
wfgeo's user avatar
  • 3,638
4 votes

How to add a new database connection to QGIS with Python?

I figured it out myself in the end. The database connection information is stored in PyQt4.QtCore.QSettings(). Using this page: http://pyqt.sourceforge.net/Docs/PyQt4/pyqt_qsettings.html I was able …
wfgeo's user avatar
  • 3,638
3 votes
3 answers
2k views

How to add a new database connection to QGIS with Python?

I have a plugin for QGIS that helps to populate databases. The user has the option to create a new database or to use an existing connection. If the user chooses to make a new database, I would also …
wfgeo's user avatar
  • 3,638
1 vote
Accepted

Search any .qgs file in Python

You can use the endswith('.qgs') string method on the file name string
wfgeo's user avatar
  • 3,638
5 votes
0 answers
562 views

QGIS (Python) crashing when trying to iterate through layers in a thread

Version: 2.18, and I cannot upgrade to 3. I am adapting a script I found elsewhere on stackexchange which is supposed to indefinitely refresh all layers in the TOC at one-second intervals. This is th …
wfgeo's user avatar
  • 3,638