Tag Info

Hot answers tagged

2

Just to add to the earlier answer... You can find the field for the path here - Processing > Options > Providers > SAGA > SAGA Folder:


2

I think some of the tools you are looking for can be found in a single plugin - the Processing plugin. Importing this plugin from PyQGIS would allow you to call various tools (I am not an ArcGIS user so I am judging the tools you mentioned by their name and a quick search): ArcGIS QGIS arcpy.AddField_management ...


2

Apologies that this was such a severe bug in qgis2web 0.14.0. I've fixed it as described by GreyHippo, and pushed qgis2web 0.14.1 as a GitHub release, and also onto the QGIS plugins repo - you should be able to update from within QGIS.


2

QGIS updated to the SIP API V2 between 1.8 and 2.0. See: https://hub.qgis.org/wiki/17/Python_plugin_API_changes_from_18_to_20#Replace-QStringList-with-list It will transparently convert some types (like QString or QList) between python and Qt types. So you can just use a python list of str or unicode objects and pass it to the pyqgis and pyqt API wherever ...


2

Yes. Assuming you're using Python for your plugin, this should cover most things for raster-based processing. from osgeo import osr import gdal from gdalconst import * If your plugin needs to handle vector data, add in from osgeo import ogr If you've done a 'normal' install you should at least have GDAL, and so should your plugin users. This might ...


1

You need to set your map to use the atlas feature's extent, using QgsComposerMap.setAtlasScalingMode, eg myAtlasMap.setAtlasScalingMode( QgsComposerMap.Auto ) Place this line after you've setup your atlas, but before the beginRender call.


1

Problem was that one layer was using a rule-based renderer, which is unsupported. I need to patch the plugin to alert users if their project contains rule-based layers.


1

There is an error in the code. In maindialog.py on Line 198 should be: outputFile = writeLeaflet(self.iface, folder, 600, 400, 1, layers, visible, "", cluster, "", "", "", "", labels, 0, 0, json, params, popup)


1

As far as I know, before using v.net.salesman to get your route, you should connect your points layer to your network (line vector layer) using v.net op=connect [1] at nlayer=2 Once you connect your 12 points to your network as nodes, you'll be able to select your nodes layer from the "input nodes" dropdown menu. Hope this helps. Cheers, LluĂ­s [1] ...


1

This problem is caused by uic not working properly. I am not sure exactly why but I can show the symptoms and a workaround. The initial plugin .ui file has at the bottom: </resources> When you edit the resources for the plugin in QtDesigner this changes to: <resources> <include location="resources.qrc"/> </resources> This is ...


1

I was able to make the method you are using work by simply changing the name from 'openlayers' to 'openlayers_plugin'. olplugin = qgis.utils.plugins['openlayers_plugin']


1

Worked for myself as well, as Matthias suggested if you add the following to your import statements: import resources_rc It works as long as you have updated and recompiled your resources file: pyrcc4 -o resources_rc.py resources.qrc (In windows easiest to run with the OSGeo4W shell, cd to directory)



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