Tag Info

Hot answers tagged

4

a good a user friendly way to do it is using the QgsMessageBar class. A first look here by the author of this class: http://nathanw.net/2013/08/02/death-to-the-message-box-use-the-qgis-messagebar/ and then an example of a progress bar can be obtained directly from the QGIS code (Processing core plugin) ...


4

if you have a constant interval, then you do not need a look up table. You can use the following formula (int(raster@1) / interval) * interval + interval/2 of course, / must be an integer division (rounding to the integer below)


3

It sounds like you want to buffer your point layer? Load your data as Joseph describes Go to the menu Vector/Geoprocessing Tools/Buffer(s) In the dialogue box choose your input layer (possibly only accepts shp - so you might need to save your csv as shp first) then set your buffer distance and specify an output file. Other parts of the dialogue box are ...


2

Sometimes it's easier to look at the code of an existing plugin which has the functionality you want, multiple menu items. You can find a link to the source on the description of each plugin in the Plugin Manager - usually to Github or a similar repository. Unfortunately, you can't do this with the Grass plugin as it's a shared object (dll on Windows). ...


2

You can import your csv file with lat/lon data by going to Layer > Add Delimited Text Layer and check the 'Points coordinates' as the geometry definition: Once imported, you can change the style by double-clicking the layer to access its properties, go to the Style tab, select the Simple marker option and change its options such as colour, size etc. You ...


2

Based on the great idea of @radouxju's responce I resolve this issues. Instead of using Reclass function I used MapAlgebra function so the query is : SELECT ST_MapAlgebra(a.rast,b.rast, '(ceil([rast1]/10)*10)+5') AS newrast from my_raster1 a, my_raster2 b I used 'ceil' funtion to get the smallest integer not less than argument see this link And this is ...


2

It is possible with QWebView from QtWebKit. You can display arbitrary websites in a QWebView and you can even interact with them from QGIS: django_web_view.py # -*- coding: utf-8 -*- from PyQt4.QtCore import Qt, QUrl, pyqtSlot from PyQt4.QtGui import QApplication from PyQt4.QtWebKit import QWebView class Django_Web_View(QWebView): def __init__ (self, ...


2

In your __init__ function in plugin implementation find a line where your dialog was created. Probably it will be: self.dlg = CreateModelDialog() Then if you want to close dialog window you have to execute: self.dlg.close() Put this line into the function with your algorithm at the end of code. Example structure of your plugin.py: class ...


1

in your plugin init() you can add a listener to iface.initializationCompleted signal http://qgis.org/api/classQgisInterface.html#a6f1cc8be7d4e0b4c76c2806b78b3d8b0 then do what you want regards


1

This looks like an interesting plugin, and one I would have a lot of use for. You can use the inspect module to peek inside objects without using dictionaries. Better still, you can peek at the code, comments, argument lists and so on. The latter would be useful for a plugin like this ;-) Here's a quick example to get you started.. in this case, I'm ...


1

Yes ! I found the solution by fixing QTiles plugin. It was because Qtiles never tell QGIS the current zoom level when generating tiles. Just add self.settings.setMapUnits(QgsCoordinateReferenceSystem('EPSG:3395').mapUnits()) in render function inside tilingthread.py inside C:\Users[yourname].qgis2\python\plugins\qtiles


1

I tried this and it worked : in your function run : Put the line layer = self.wcb.currentLayer() after if result: It did what I think you wanted it to do. On a side note : you know you can make your app calculate the average without clicking on ok? If you play with the signals, you can make a text appear in your main window each time you change ...


1

I've tried your code, but it not work. It can't find selected feature. So, I make an edit from your code. This is the edited code: def selectFeature(self, point, button): pntGeom = QgsGeometry.fromPoint(point) pntBuff = pntGeom.buffer((self.canvas.mapUnitsPerPixel() * 2), 0) rect = pntBuff.boundingBox() cLayer = ...


1

Image Boundary plugin did not work for me either, therefore I used the same approach with GDAL. Nevertheless it only worked for me after changing the first step to: step 1: gdalwarp -srcnodata 0 -dstalpah -of GTiff foo1 foo2 I am working with Landsat8 band (where no data=0) and when using the -dstnodata function I get: band1 with no data = 'no data' ...


1

For place names and admin boundaries, try NaturalEarth. They also have natural features like lakes and rivers. Another good source is geonames.. these come as csv files which you can import into qgis as point layers. They include a mixture of towns, villages but also geographic features like lakes and mountains. OpenStreetMap is also a good source, and the ...


1

There are several free sources like http://www.statsilk.com/maps/download-free-shapefile-maps http://www.mapcruzin.com/free-world-country-arcgis-maps-shapefiles.htm http://www.gadm.org/ You can download them,add to shape files and display labels.


1

Open "QGIS Browser 2.10.1 with GRASS 6.4.4". Find the vector or raster layer in the "header window". Click on the layer and drag it over to your QGIS "Layers Box".


1

its kind of weird the situation that you have over there, if there is no icon (shortcut) the qgis2kml plugin should located on Plugins Dropdown MENU



Only top voted, non community-wiki answers of a minimum length are eligible