Re: [Qgis-user] Installing QGIS 2.8.4 from the source - how to?

2016-02-02 Thread Yves Moisan
Le 2016-02-02 11:28, Luis Molina a écrit : ImportError: No module named Qsci QScintilla2 is missing. Here's the final list of dependencies on Ubuntu trusty (including libqscintilla2-dev and python-qscintilla2) : [sudo apt-get install -y ] bison cmake doxygen flex git graphviz grass-dev

[Qgis-user] Loading features from PG view in memory layer

2016-01-27 Thread Yves Moisan
Hi, I'm looking for a way to load features directly from a PG view into a memory layer. The way I do it now is to first create a 'postgres' vector layer with the view as a source, then getFeatures() and then add those features in the memory layer provider. It all works fine but I'd

Re: [Qgis-user] Selection issue for large set of features

2015-12-10 Thread Yves Moisan
I would like to use selectedFeaturesIds() but I can't rely on ids returned being the actual PK. A way to circumvent the PK identification issue on a PG view : - load layers whichever way (browser, DB Manager, etc.); at this time keyColumn() on a QgsDataSourceURI object made from that layer

Re: [Qgis-user] Selection issue for large set of features

2015-12-10 Thread Yves Moisan
why does the featureId not point to the PK? Can you guarantee that the value is unique in the view? Maybe it is not? Hi Bernhard, I'll double check that. Another thought: I normally use QgsVectorLayer.setSubsetString() to reduce the amount of features being loaded into QGIS in the first

[Qgis-user] Selection issue for large set of features

2015-12-09 Thread Yves Moisan
Hi All, Sorry for X-posting. I originally put this message on the qgis-dev list but I guess it wasn't the right place. I'm contributing to a QGIS python plugin. Dev environment : 2.8.3 (compiled) Ubuntu 14.04. I have an issue getting a list of PK ids from selected features on a vector