Tag Info

Hot answers tagged

4

You can use QGIS' Delimited Text Layer support to add the layer to the map, at which point you can right-click the layer and select 'Save As...' to convert to Shapefile or other supported formats.


3

You can manually download your Ordnance Survey Translator plugin from the repository and extract the folder to the following directory: C:\Users\(your user name)\.qgis2\python\plugins\ Restart QGIS and from the toolbar, go to Plugins > Manage and Install Plugins... Your plugin should be listed, check the box next to the plugin name to enable it.


3

Using the direct way as you tried in your example looks much cleaner, however, I did not find out either how to achieve this in QGIS 2.4. So long, as a workaround, you can navigate through the menu interface manually to open the desired map from the OpenLayers plugin. In the following code, set the variables mapProvider and openLayersMap to your desired ...


2

I just tested the script and works fine also by ScriptRunner. The only thing that I had to change to the above code was initializing the QgsFillSymbolV2 class ;-): redsym = QgsFillSymbolV2() redsym.createSimple(red) Anyway, we are going to get another great release on 31th :)


2

It's caused by a bug in QGIS 2.4 (fixed for 2.6). The crash is caused when python cleans up the redsym symbol. To workaround it, make sure redsym is stored somewhere where python won't automatically clean it (eg, store it in a global variable).


2

You can edit the style of your output line layer (Layer Properties > Style) and change the Symbol layer type from "Simple line" to "Marker line" to automatically add more symbol layers: You can choose the shapes you want the line to consist of (in this case, arrows) along with other options such as intervals, widths and angles of the symbol. Hope this ...


2

I had the same problem. This should solve the bug (QGIS 2.6 under Windows): close QGIS using regedit.exe, search for "Plugin-GeoReferencer". This should point to a folder under \HKEY_CURRENT_USER\Software\QGIS\QGIS2\Plugins (optional: export a .reg version of the folder for back-up) delete the folder "Plugin-Georeferencer" restart QGIS. Georeferencer ...


2

This may not apply to your situation as it may depend on the attributes of the points but I have a point layer where I use their unique ID attribute and created 10 classes of equal count (quantile): You can create unique attributes if you don't already have one by using the Field Calculator and adding $rownum in the expression. Hope this helps.


2

Not using the interface no, however you can write a Python script to do it which I have done in a project of mine. Here is a an extract: def get_plugins(qgisversion='2.4'): """ Fetch the plugins from plugin repo :return: name, url, filename """ plugin_request = ...


2

QGIS Openlayers is not Google Maps! What you trying to do is also known as geocoding. Can be for instance accomplished with the MMQGIS plugin -> geocode The OSM place search plugin The Geocode plugin and likely many more... Or you could just use google maps and copy/paste the resulting longitude and latitude values into the address-bar in QGIS for a ...


1

Note that you are using documentation from 2011. Since then QGIS has advanced to version 2.x and there was a Python API break between 1.7 and 2.0. You can find an up to date description of the plugin creation process as http://anitagraser.com/2014/04/26/getting-started-writing-qgis-2-x-plugins/


1

Thanks for your suggestions, all considered yesterday, before I filed the question. Solved: something silly, but finally paid attention: I had not changed the object name for the dialog object in QT. I assumed in error, that the name was generic/default, and carried as such over to the plugin builder. Once I changed the dialog object name, it worked. ...


1

You need to highlight all the attributes you want to appear in the output from the "Layers with fields/bands to get values from" list. If you have not clicked on 'EUD_CP_DEMS_3500015000-AA-86 : Band 1 (raster)' so that it is highlighted then you will get nothing. This is what the message: Complete the input fields and press OK... means (I think ...


1

You can create help files via Scripts -> Tools -> Create New Script and in editing window hit Edit script help button. There you will find all the fields to fill. If your script is script.py the name of the help-file must be script.py.help and it should be placed next to the script itself (in the same folder). For example in Linux the path to the ...


1

fixed problem: unninstall older versions, i had an 1.8 version


1

I had the same problem. This should solve the bug (QGIS 2.6 under Windows): close QGIS using regedit.exe, search for "Plugin-GeoReferencer". This should point to a folder under \HKEY_CURRENT_USER\Software\QGIS\QGIS2\Plugins (optional: export a .reg version of the fodler for back-up) delete the folder "Plugin-Georeferencer" restart QGIS. Georeferencer ...


1

Since QGIS 2.4 Chugiak, the OpenLayers plugin has moved in the QGIS Gui to Web->OpenLayers plugin, hence the first method described above won't work anymore. I updated it to match the new menu structure, see my answer here. Still, it would be interesting to know how to adapt the second method to QGIS 2.4 and above.



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