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 10415

QGIS is a cross-platform GIS application licensed under the GNU General Public License.

2 votes

Installing tweepy for tweeter 2qgis?

To use it within the plugin you must install it to your Qgis Python instance (located in your OSGeo4W folder on windows). For instructions on installing into Qgis's python you can see this guide. …
Matt's user avatar
  • 2,706
3 votes

Postgis geometry type = Geometry

You could add a new geometry column to your table with the specified point/line/poly and then copy the geometry from the current geometry column. ALTER TABLE your_table ADD COLUMN geom geometry(POI …
Matt's user avatar
  • 2,706
4 votes

Problem connecting local POSTGIS in QGIS

You need to tell QGIS that the database server is on running localhost. Try making Host = 'localhost'. Also you are trying to connect to the postgres maintenance db. …
Matt's user avatar
  • 2,706
4 votes
Accepted

"CRS selector" dialog after running a script

You can specify the CRS when you create your memory layer: vl = QgsVectorLayer('LineString?crs=EPSG:2964', 'MyLayer' , 'memory')
Matt's user avatar
  • 2,706
3 votes
Accepted

keeping track of edited features QGIS

Assuming you are using PostGIS, you may want to look into implementing your own edit tracking system in postgres. A great tutorial can be found at this blog. The general idea is that after each edit …
Matt's user avatar
  • 2,706
1 vote

Disconnect QGIS from database without closing the whole program

If you are using psycopg2 then you can close the connection to Postgres like so con.close()
Matt's user avatar
  • 2,706
1 vote

How to get value and store it in a variable from a line edit or text edit in pyQT?

You can grab the text like so: text = self.your_plugin_dlg.ui.yourLineEdit.text()
Matt's user avatar
  • 2,706
1 vote
1 answer
781 views

How to use QgsVertexMarker in a Python plugin?

I am trying to display a vertex marker for a QGIS Python plugin I am writing. I am getting a the following error... …
Matt's user avatar
  • 2,706
7 votes
Accepted

Missing Georeferencer

You need to enable it in the plugins menu. Goto 'Plugins' > 'Manage and install plugins' > 'Installed'. Then make sure GDAL Georeferencer is ticked.
Matt's user avatar
  • 2,706
1 vote
Accepted

Tick boxes for a qgis plugin written in python

Yes this is possible. I think you are looking for a checkbox. self.yourCheckbox = QtGui.QCheckBox(self.layoutWidget) self.yourCheckbox.setObjectName(_fromUtf8("Checkboxname")) Then to see if its ch …
Matt's user avatar
  • 2,706
2 votes
Accepted

How can I determine which polygons contain other polygons?

You can achieve this using PostGIS spatial functions. St_Within will return True if geom A is totally within geom B. There are other similar functions you can use if this isn’t suitable, check the d …
Matt's user avatar
  • 2,706
4 votes
1 answer
981 views

How to programmatically detect a canvas refresh or pan/zoom in QGIS

For my python plugin I would like to remove a VertexMarker when the user pans/zooms there map. Which is the best way to detect a canvas refresh or pan/zoom carried out by the user? Can you suggest …
Matt's user avatar
  • 2,706
3 votes
Accepted

Features placed 7.5 thousand kms off correct location using QGIS?

It does sounds like you have changed the CRS half through adding the features. You can re-project those points by selecting them, then right click on the shapefile layer in the table of contents and …
Matt's user avatar
  • 2,706
6 votes
1 answer
8k views

How to create a dock widget correctly in QGIS plugin?

I am building a QGIS plugin and would like to use a dock widget. I have used QT creator to design the UI, with the object type being a QDockWidget. … When the plugin is enabled in QGIS the DockWidget appears to be inside a normal dialog box. I am therefore unable to dock the plugin to the toolbar space etc... …
Matt's user avatar
  • 2,706
2 votes
0 answers
193 views

'File is too big' error when uploading QGIS Plugin

I have written a simple QGIS plugin which zooms the map canvas to a user specified UK postcode. … This is too large to upload to the qgis repository and impractical to download and share. …
Matt's user avatar
  • 2,706

15 30 50 per page