Tag Info

New answers tagged

0

It seems your "key" field must have type integer and not text. I reproduced your problem with the following snippet: uri = QgsDataSourceURI() uri.setConnection("localhost", "5432", "mydb", "user", "pass") query="SELECT id, CAST (id as text)|| '_' || (ST_DumpPoints(geom)).path[2] as key, (ST_DumpPoints(geom)).geom as points FROM line" uri.setDataSource("", ...


1

open .ui file with QT Designer or QT Creator and follow QT guides. Other QGIS oriented references are: PyQGIS Programmers's Guide - https://locatepress.com/ppg and some more Packt books in publishing


-1

os.path.join(os.path.dirname(file), '')


0

I think you mis understand what QgsApplication.pluginPath is meant to return. The path it returns is the plugins for the application itself, not the user plugins. Application plugins include the data providers, C++ core plugins, etc


2

I came across the same issue last week. Follow this work flow and you'll be able to see selected points, even if they share position with non-selected points: Load your point layer in QGIS and make sure it is in the first position of the ToC. Open the Python Console from Menu Plugins. Copy the next Python code in the Python console and press Enter (you ...


0

Follow these 5 steps in the QGIS Python console: Get the layer reference (I assume the layer is at the top of the ToC): l = iface.mapCanvas().layers()[0] Get a featureIterator from an expression: expr = QgsExpression( "\"EXCHANGE_1141_CODE\"='IH'" ) it = l.getFeatures( QgsFeatureRequest( expr ) ) Build a list of feature Ids from the result obtained in ...


1

Well, I found the QConsolidate plugin in the Plugin Manager list after enabling searching for experimental plugins under "Settings". Plugin Manager got it from the repository and installed successfully.


0

Please use the plugin installer to install packages it will take care of everything. If you do need to manual install you will need to remove the - from the file name: qconsolidate


1

Thanks Luigi . i was missing the import thing i did nor realized it as the way the error was it sounded it says the variable has to be defined rather than the class is not recognized or missing. These people should work on error messages . from PyQt4.QtGui import QMessageBox


0

Might I suggest: Right click on the layer and select Save As.. then specify a projected coordinate system to do your calculations in. Convert polygon/line vertices to points instead of Extract Nodes. The first field (ID) is a backslash delimited field with sourceID/part/vertex to allow you to track back. Delete your duplicates if necessary. Add ...


0

I'd start python console and 'import ogr' command give errors! It's not a flowmapper pluging error seems more deeply programs.


0

You can get the Z value clicking on the map. Take a look at the showQueryResult function for more info.


4

"QuickWKT" by Alessandro Pasotti is the simplest way to create a point layer knowing it's coordinates "New Memory Layer" plugin by Boris Jurgiel allow you to create a memory layer that you can edit adding point features probably there are others that I don't know ;) regards


0

One of the plugin frameworks (the Processing framework) that's used by a lot of plugins, including Buffer by Percentage, changed the structure of its files slightly starting with QGIS 2.5. Most of the plugins using this framework have to be adapted to work correctly with QGIS 2.5 and 2.6. A new version (0.2.1) of the Buffer by Percentage plugin was released ...


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.



Top 50 recent answers are included