Tag Info

New answers tagged

1

I know I'm coming a bit late, but a quicker way to do this (provided that you're using Windows), is by using the OSGeo4W Shell. Make command will work from there. Source and I've also tested it QGIS version 2.8.1 if that adds any more relevance. Best regards,


0

If you connect your original points with lines (maybe using the points2one or PonitConnector plugin), you can: buffer those lines with a small value calculate the centroid of the buffers You still have to calculate the value at the new points. Alternatively, using an excel table with coordinates and values: x = ( x1 + x2 ) / 2 y = ( y1 + y2 ) / 2 v = ...


0

What are the distances between the columns? The distances between the points in one column are the same? I changed a bit the steps above. create buffer with more than half way radius cut the overlapping areas as separate polygons create a calculated field to represent the area sizes. If the distances between point to point in column and column to column ...


2

When QGIS closes, the plugin's unload() method is called as documented in http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html#mainplugin-py This means that you don't have to detect anything yourself. QGIS takes care of unloading the plugins.


3

Looking at the project homepage, you are not the first one to notice this. Please note that gis.se is not a bugtracker and it is unlikely that this post here will help to fix this issue. Therefore, please use one or more of the following options to proceed Create a ticker in the plugin bugtracker Contact the plugin author Consider funding him to fix it ...


1

I have an idea what may can help you, but I couldnt test it (I am not sure where are the necessary functions in qgis, but they should be available because the steps are built up from general GIS concepts) I presume (based on the picture) the distance between the points are constant or near constant. Steps: create buffer with more than half way radius cut ...


1

There is no page attribute on the QStackWidget object. Here are all the methods that it has: http://doc.qt.io/qt-4.8/qstackedwidget.html What you need to do get the widget is call the widget function: widget = self.stackedWidget.widget(index) where index is the page index of the widget.


1

Your code is uncomplete and not well formated. However, this adaptation seems to work as it is espected: canvas1 = iface.mapCanvas() layers = [] n = canvas1.layerCount() for i in range(n): layers.append(canvas1.layer(i)) canvas2 = canvas1 properties = {"color": "255,0,0", "outline_color": "255,0,255"} symbol = ...


2

You can do that in this way, from the QGIS Python console: from PyQt4.QtGui import QToolBar iface.mainWindow().findChild(QToolBar,'mLabelToolBar').setVisible(False) iface.mainWindow().findChild(QToolBar,'mLayerToolBar').setVisible(False) I got the tool bar names (e.g., mLabelToolBar and mLayerToolBar) from Settings->Customization...->Toolbars. Check ...


1

I am not sure if this help you since this is for python. Why not add the action to attributes toolBar. attributeToolBar = self.iface.mainWindow().findChild(QToolBar,'mattributeToolBar') action = QtGui.QAction(parent) attributeToolBar.addAction(action)


4

You can activate the diagram overlay for a vector layer in layer properties > diagrams: As a core plugin it is included in QGIS. You can find more information here: How to draw bar diagrams on the map?


1

You could try using pyinstaller: https://github.com/pyinstaller/pyinstaller/wiki It will require some tweeking to get all the dependencies.


2

The best practice is to use a resource.qrc file and compile that in into a resource_rc.py file using pyrcc4. pyrcc4 ships in the QGIS folder run OSGeo4w.bat to get access to it. pyrcc4 -o resources_rc.py resource.qrc In your Python code you then do: import resources_rc icon = QIcon("Identity.png")


3

Non-valid layers are most of the times due to a wrong QGIS prefix definition. Please try with: qgis_prefix="C:\\Program Files\\QGIS Wiena\\apps\\qgis" QgsApplication.setPrefixPath(qgis_prefix, True) Which should go right before this line: QgsApplication.initQgis() Now your tested layers should be valid.


1

Without creating a QT application in the main function I directly called the function that initiates the QGIS libraries. That was the problem. Now it got solved after making changes.


1

I did a quick glance at the code for the tool. It appears that default/feet choice is to specify a fixed conversion between feet and meters. This would make sense, because as I mentioned earlier in the context of metes-and-bounds you're usually using one of those units (or something archaic like chains or rods). But line 189 of the source code is just a ...


1

Unfortunately this is an issue in the current version. We created this function and it worked well (at least on my linux notebook) and it went down some months ago. You can contribute to this issue Nevertheless you can reproject any raster to EPSG 4326, translate it to jpg and embed it by hand in your webmap project. I solved this issue now and you can ...


1

Here are the screen shots of the final work. The webpage and part of the html code which i had to alter Thanks so much for the help.


2

1: The legend table has the granularity of the layer table. So: one entry in the table per layer. If you define an entry in legend_ico and legend_exp only the first line in the attribute table will be used. 2: legend_ico could contain one path like 'pictures/legend_1.jpg' with a local path for your image. You need to create the image either by hand or place ...


0

I've just installed the latest development version of QGIS (6 April) and the bug that prevented the creation of new Grass mapsets has been fixed - all now works just as expected. Hats off the to QGIS development team!



Top 50 recent answers are included