Re: [Qgis-developer] Measurement in meters

2013-03-22 Thread Alex Mandel
On 03/21/2013 10:37 PM, Alex Mandel wrote: On 03/20/2013 11:58 PM, Paolo Cavallini wrote: Il 21/03/2013 02:26, Alex Mandel ha scritto: It's user configurable in the Project Properties in 1.8. Did that change in master? Or do you mean when projection on the fly is on? Yes, OTF on, Project

[Qgis-developer] Labels in map units

2013-03-22 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. On a few machines (QGIS 1.8 on win) defining label size in map units works correctly only when zooming in. At lower zooming levels, the labels remain of the same size on screen. On Linux qgis master behaves correctly. A local/solved problem,

Re: [Qgis-developer] Ticket assignment in Redmine

2013-03-22 Thread Tim Sutton
Hi On Thu, Mar 21, 2013 at 3:25 PM, Hugo Mercier hugo.merc...@oslandia.com wrote: Hi, Sorry if it is not the right place to report. I have an account on hub.qgis.org. I can add comments to tickets and create tickets. But a ticket cannot be assigned to me (which would be the case for

[Qgis-developer] Instead of trigger - Updating a PostGIS view from QGIS

2013-03-22 Thread Jakob Lanstorp
Has anyone tried to use an Instead of trigger in PostGIS from QGIS; Updating multiple tables in PostGIS from QGIS in one go. Jakob -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Instead-of-trigger-Updating-a-PostGIS-view-from-QGIS-tp5042313.html Sent from the Quantum

Re: [Qgis-developer] Instead of trigger - Updating a PostGIS view from QGIS

2013-03-22 Thread Ivan Mincik
On 03/22/2013 11:53 AM, Jakob Lanstorp wrote: Has anyone tried to use an Instead of trigger in PostGIS from QGIS; Updating multiple tables in PostGIS from QGIS in one go. I did multiple experiments with triggers and QGIS. It is working nicely. Also QGIS versioning plugin (pgVersion) is using

Re: [Qgis-developer] Instead of trigger - Updating a PostGIS view from QGIS

2013-03-22 Thread Andreas Neumann
yes - the PostgreSQL rules and triggers usually work without problems. I use them often when I deal with views. Andreas Am 22.03.2013 11:53, schrieb Jakob Lanstorp: Has anyone tried to use an Instead of trigger in PostGIS from QGIS; Updating multiple tables in PostGIS from QGIS in one go.

[Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Denis Rouzaud
Hi all, I am looping over features of a layer using new API (QgsFeatureRequest). If I modify a feature and do: layer.updateFeature(f), my loop is broken. Is this a normal behavior? What should I do if I want to modify features during the loop? Thanks Denis

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Nathan Woodrow
Do you mean your loop is exited when you call updateFeature? Can you post your code. - Nathan On Fri, Mar 22, 2013 at 10:54 PM, Denis Rouzaud denis.rouz...@gmail.comwrote: Hi all, I am looping over features of a layer using new API (QgsFeatureRequest). If I modify a feature and do:

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Denis Rouzaud
Yes exactly f = QgsFeature() iter = vectorLayer.getFeatures( QgsFeatureRequest() ) while iter.nextFeature( f ): print f.id() f.setAttribute( field, QVariant( 1 ) ) vectorLayer.updateFeature( f ) Prints only 1

[Qgis-developer] Plugins with no metadata

2013-03-22 Thread Régis Haubourg
Hi all, I've seen that metadata.txt is now mandatory for plugins (good thing). I've seen a side effect on existing installs, when plugin is installed previously without metadata (FastSQL Layer, Import Project... ), there is no error message. Installer displays 'installed' status, but plugin is

[Qgis-developer] hub.qgis.org is down

2013-03-22 Thread Régis Haubourg
' rails failed to start' -- View this message in context: http://osgeo-org.1560.n6.nabble.com/hub-qgis-org-is-down-tp5042352.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list

Re: [Qgis-developer] error running qgis master - sextante depends on psycopg2 - but this dependency isn't well known

2013-03-22 Thread William Kyngesburye
Applications on OS X do not inherit the shell environment. The simplest solution is to install my psycopg2 python package for the system python. My QGIS uses the system python so it will automatically find it. If you compiled QGIS yourself using that python.org python that I see you have

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Denis Rouzaud
Hi Matthias, Thanks for your reply. This should work better, the loop is not exited. However, my field values are set to NULL using either changeAttributeValue(s) on vector layer or on data provider. I tried: vectorLayer.changeAttributeValue( f.id(), fieldIdx, QVariant(alt) )

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Nathan Woodrow
If updateFeature is indeed doing feature request inside and breaking the loop then that is a bug. updateFeature should not affect the feature request. - Nathan On Fri, Mar 22, 2013 at 11:10 PM, Denis Rouzaud denis.rouz...@gmail.comwrote: Yes exactly f = QgsFeature()

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Nathan Woodrow
Also Denis. You can simplify the code a lot like this: for f in vectorLayer.getFeatures( QgsFeatureRequest() ): f[field] = 1 vectorLayer.updateFeature(f) On Fri, Mar 22, 2013 at 11:10 PM, Denis Rouzaud denis.rouz...@gmail.comwrote: Yes exactly f = QgsFeature()

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Jürgen E . Fischer
Hi Nathan, On Sat, 23. Mar 2013 at 00:29:03 +1000, Nathan Woodrow wrote: If updateFeature is indeed doing feature request inside and breaking the loop then that is a bug. updateFeature should not affect the feature The misfeature is that there can only be one active iterator per provider (see

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Nathan Woodrow
Jurgen, What is the purpose of doing all the extra feature lookup in updateFeature? Just so that don't change all the attributes everytime? I doubt there would be that much overhead to really care, I would even say the getFeature request would be slower then just changing all the attributes each

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Matthias Kuhn
Hi Denis, On 22.03.2013 14:43, Denis Rouzaud wrote: Hi Matthias, Thanks for your reply. This should work better, the loop is not exited. However, my field values are set to NULL using either changeAttributeValue(s) on vector layer or on data provider. I tried:

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Jürgen E . Fischer
Hi Nathan, On Sat, 23. Mar 2013 at 01:42:32 +1000, Nathan Woodrow wrote: What is the purpose of doing all the extra feature lookup in updateFeature? To record just the changes on the undo stack and not load of changes that actually don't change anything. To me this method is broken an

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Matthias Kuhn
Hi Jürgen and Nathan, On Fre 22 Mär 2013 18:00:14 CET, Jürgen E. Fischer wrote: Hi Nathan, (... snip ) The bug is that the providers have a notion of active iterators. The iterators should be independent, but currently aren't. I think that's going to change when threading is introduced

Re: [Qgis-developer] problem with feature request and updateFeature

2013-03-22 Thread Nathan Woodrow
On Sat, Mar 23, 2013 at 3:00 AM, Jürgen E. j...@norbit.de wrote: I don't see a way to currently get what changed without looking up the current feature in the process. Well the feature itself knows what values it started with. Every update in QgsFeature goes though the setAttribute, etc,

[Qgis-developer] New QgsColorButton: features and poll

2013-03-22 Thread Larry Shaffer
Hi, Matthias Kuhn and I reworked the QgsColorButton class and refactored it use across the project. The following is an overview of its new features, a poll on how to move forward, and a note about a Mac issue. Features: * Now one class based off of QPushButton, with two variants: one with an