Hot answers tagged qgis-plugins
The most complete API docs are located at http://qgis.org/api/2.2/classQgsMapLayer.html A good Python-specific resource is The PyQGIS Programmer's Guide. It's new and written for the 2.x API. Concerning the pyQGIS Cookbook: I assume you are referring to the screenshot on http://www.qgis.org/en/docs/pyqgis_developer_cookbook/intro.html? This seems to have ...
You have to georeference your image. Look for Georeferencer tool in Raster menu. Here you have a good guide in "how to georeference a image in qgis". It is for QGIS 1.7.2, but there aren't major changes in current version.
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 checked: isitchecked = self.dlg.ui.yourCheckbox.isChecked() # returns True if checked
The old Openstreetmap plugin had the ability to edit and upload the data back to the OSM Servers. This was dropped, because the OSM editors are better, and keeping up to date with the OSM tagging would need more time than the plugin authors want to spend on it. You can however change properties of the points, lines and polygons layers inside QGIS, as you do ...
The recently used projections are stored in your user settings. Here is an example of the keys and some sample values: UI/recentProjections=932, 3452 UI/recentProjectionsProj4="+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft +no_defs", "+proj=longlat +datum=WGS84 +no_defs" UI/recentProjectionsAuthId=EPSG:2964, ...
Yes, there is a feature called map tips that does exactly that. They can be activated in the display tab of the layer properties, you can display a field value or use HTML code. Check out Nathan's blog post for more info.
You aren't selecting anything in your code. Once you have the point click coordinates, you need to select features using: QgsVectorLayer.select (QgsRectangle, False) In other words, create a QgsRectangle around the click point using whatever search radius you want and then select the feature(s): # use 5 map units for selecting radius = 5 rect = ...
I solved my problem. As suggested above I looked at the different versions using this command in the terminal. dpkg -l | grep qgis Then instead of using "apt-get" I used "aptitude". The following command upgraded all the qgis version to the latest. sudo aptitude upgrade This worked for me, now I have access to all my plugins again.
Only top voted, non community-wiki answers of a minimum length are eligible