Tag Info

New answers tagged

0

OK so you want to know how to generate polygons centered on selected points in pyQGIS and retain all the attributes of the points in the new polygons? Here's a script to do that: Note that the code was written to apply to a points-containing example shape file I have. You need to remove the section which reads in my example file in order for it to use your ...


0

All you need to do to "show" power lines in QGIS is to have a source from which you can draw lines. I guess you are working in power system company. I'm sure you have some kind of GIS or GIS data? Power lines in QGIS are just polylines taken from source like your spatial databases or CAD drawings. You don't need any plugins to do that. Another thing is study ...


0

I think this is rather a packaging problem. The package you mention is from the official python sources. For Windows builds with OSGEO4W, the version number is 3.0.1-1, and it is installed by default. According to this ticket for Ubuntu: https://hub.qgis.org/issues/10099, pyspatialite is now part of python-qgis, so no need to install it separately. Maybe ...


0

The dynamic part isn't really doable without actions or triggers (or some other workaround) - that's one of the key differences between a database and a spreadsheet. However, there is a plugin for QGIS that provides pivot table functionality called GroupStats. As an aside for any Arc user who comes across this, ArcGIS has a Pivot Table tool at the Advanced ...


1

I'd suggest to poligonize the grid and to then intersect the polygon grid with the other input polygon layer. That should be much less trouble.


3

This plugin is a C++ core plugin and cannot be uninstalled. Only Python plugins can be uninstalled. If you find an issue with a core plugin which is reproducible, please report the bug.


0

A similar question on how to access other algorithms such as those from MMQGIS has been asked with an answer given: How to use the MMQGIS plugin through the Python console?


0

You are just missing an asterisk (*) there. It's SIGNAL("selectionChanged(QgsMapLayer *)") (notice the asterisk * after QgsMapLayer) In C++ the asterisk refers to a pointer, and this is what the signal expects, compare http://qgis.org/api/2.4/classQgsMapCanvas.html#signals


3

QgsMapLayerRegistry is a singleton. You can therefore access it without iface. QgsMapLayerRegistry.instance().mapLayers()


0

And if someone is struggling for days to find the AniMove functions as I was, one needs to active the plugin in Processing -> options & configuration -> Providers -> AniMove -> tick box behind activate.


1

Solved it. The path was wrong, as it was looking for a file 'directory\file' when it needed to look for 'directory/file' If you're trying to use this plugin on a Mac, go to the plugin folder, and open zoomtopostcode.py in a plain text editor. Change line 168 from find_pkl = str("UK_Postcodes\\" + input_pcode[:2] + ".pkl") to find_pkl = ...


1

Not a plugin, but a nice solution using Spatialite and triggers. If you put both your polygons and points layers into a Spatialite DB, then you can add a trigger to the polygon table to update the "point_count" column on each update of the polygons. Here's the trigger statement (I called the polygon layer "areas" and the point count column "cnt_pts"): ...


1

When I don't know a Python module, I use the dir()command or the see module to know what's inside. (in the Python console) from see import see import mmqgis dir(mmqgis) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'classFactory', 'mmqgis_dialogs', 'mmqgis_library', 'mmqgis_menu'] # or see(mmqgis) .classFactory() ...


0

2.4 is now out. I just installed it and tried polygonize on a small test set. It still throws the divide by zero error.


1

I'm afraid you are lost at the moment: https://github.com/ccrook/QGIS-Contour-Plugin/issues/7 Feel free to add your case to the bug tracker. In the meantime, try Raster -> Interpolation, and make contour lines from that with Raster -> Extraction -> Contour. Maybe the Processing toolbox has better interpolation methods.



Top 50 recent answers are included