Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread A Huarte
Ok Andreas, I'm going to make it configurable, will present a new option in the main properties form of the layer About of simplification in editmode. I think is not necessary disable it, the simplification runs only on the method of painting QgsVectorLayer::draw, not when you retrieve a

Re: [Qgis-developer] Qgis : synchronized view for photo-interpretation?

2013-10-23 Thread Zirneklitis
Hi, There is a problem with a comma as the decimal separator. A new bug has been reported: http://hub.qgis.org/issues/8934 Best regards, Karlis Gino Pirelli wrote: Hi, I'm maintaining this plugin .. (Int)... so probabily in your settings zoom_factor is set as string value... e.g 2 instead

Re: [Qgis-developer] Excel export

2013-10-23 Thread Victor Gonzalez
Hi, Thank you, Richard. If you want I can work with you to upgrade the plugin to 2.0. I have a current project now in which this functionality is needed, so I can spend some time in this. What do you think? Regards, Víctor. 2013/10/22 Richard Duivenvoorde rdmaili...@duif.net On 22-10-13

Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread G. Allegri
Ok Andreas, I'm going to make it configurable, will present a new option in the main properties form of the layer I suppose he meant to do not draw simplidied geometries during editing because it would obviously lead to produce unconsistent edits. giovanni About of simplification in

Re: [Qgis-developer] Qgis : synchronized view for photo-interpretation?

2013-10-23 Thread Gino Pirelli
was a bug of mine introduces during porting to Api2.0... the original code used toDouble... I'm preparing a new version... thank you for the report Luigi Pirelli (luigi.pire...@faunalia.it) On 23 October 2013 08:11, Zirneklitis e...@lanet.lv wrote: Hi, There is a problem with a comma as

Re: [Qgis-developer] Qgis : synchronized view for photo-interpretation?

2013-10-23 Thread Gino Pirelli
ok... prepared 0.2.5 version, thank you again Luigi Pirelli (luigi.pire...@faunalia.it) On 23 October 2013 08:47, Gino Pirelli lui...@gmail.com wrote: was a bug of mine introduces during porting to Api2.0... the original code used toDouble... I'm preparing a new version... thank you for

Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread A Huarte
My simplification algorithm is a new method that uses the MapToPixel data of current QgsRenderContext to ignore in the drawing of geometry the equal-pixel device points. It has no effect if the geometry is not far of current point of view of map. It does not uses the ST_Simplify() method

Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread A Huarte
Hi Vincent! My simplification algorithm is a new method that uses the MapToPixel data of current QgsRenderContext to ignore in the drawing of geometry the equal-pixel device points. It has no effect if the geometry is not far of current point of view of map. It does not uses the ST_Simplify()

Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread G. Allegri
2013/10/23 A Huarte ahuart...@yahoo.es My simplification algorithm is a new method that uses the MapToPixel data of current QgsRenderContext to ignore in the drawing of geometry the equal-pixel device points. It has no effect if the geometry is not far of current point of view of map. It

Re: [Qgis-developer] vector rendering improvement patch

2013-10-23 Thread A Huarte
I think so, the user doesn't notice the simplification or I do not see why I have my glasses dirty :-) You can see this previous discussion in https://github.com/qgis/QGIS/pull/927 regards De: G. Allegri gioha...@gmail.com Para: A Huarte

[Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Geo DrinX
Hello all, I have difficulties writing the python code to print the field value contents from a feature. This is my source code: iter = layer.getFeatures() for feat in iter: fff = feat.fields() num = fff.count()

Re: [Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Geo DrinX
OK, I found it ! iter = layer.getFeatures() for feat in iter: fff = feat.fields() num = fff.count() for iii in range(num): print %s %(feat[iii]) But... what

Re: [Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Nathan Woodrow
Simple just: For feature in layer.getFeatures(): For attr in feature: Print attr If you have field names For feature in layer.getFeatures(): Print feature[field name] On 23 Oct 2013, at 7:21 pm, Geo DrinX geodr...@gmail.com wrote: OK, I found it !

[Qgis-developer] Customizing Qgis Web Client Toolbar

2013-10-23 Thread Luca Manganelli
Hi, I've made a pull request to Qgis Web Client code: https://github.com/qgis/QGIS-Web-Client/pull/54 With this pull we can customize QWC toolbar by adding custom buttons. There is an example with a test button to get map coordinates. It will be easier to get updates from QWC repository,

Re: [Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Geo DrinX
Thank you, Nathan. But I have not the field names. I want to have the field names ... Roberto PS: ... For is for and Print is print ;) ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org

Re: [Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Matthias Kuhn
for f in l.pendingFields(): print f.name() ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] How to get the field values in PyQGis 2 ?

2013-10-23 Thread Geo DrinX
2013/10/23 Matthias Kuhn matthias.k...@gmx.ch for f in l.pendingFields(): print f.name() Great ! Thank you :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread Stefano Masera
Hi list, I use an iterator two times in a python code and I wantto reset it to the starting point before to reuse it. In this way I hope to be more quick. # first use of the iterator iterator = layer.dataProvider().getFeatures() for feature in iterator: # operations # than, a second

Re: [Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread G. Allegri
Does iterator.rewind() return True? 2013/10/23 Stefano Masera stefano.mas...@arpa.piemonte.it Hi list, I use an iterator two times in a python code and I wantto reset it to the starting point before to reuse it. In this way I hope to be more quick. # first use of the iterator iterator =

Re: [Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread Stefano Masera
No, it does False! But if I put iterator.rewind() before the first use of the iterator it does True. - Messaggio originale - Da: G. Allegri gioha...@gmail.com A: Stefano Masera stefano.mas...@arpa.piemonte.it Cc: qgis-developer qgis-developer@lists.osgeo.org Inviato:

[Qgis-developer] QgsRasterBlock.setColor(size_t, QRgb) in SIP

2013-10-23 Thread Radim Blazek
I have a strange problem, block = QgsRasterBlock ( QGis.ARGB32_Premultiplied, 10, 10, 0 ) block.setColor( 0, QColor ().rgb() ) prints warning when run in QGIS Python shell (in QGIS debug output, not in shell): qgsrasterblock.cpp: 378: (setColor) index 140703128616960 out of range The same

Re: [Qgis-developer] How can I reset the starting point of a QgsFeatureIterator?

2013-10-23 Thread G. Allegri
When the iterator has given back all the features it gets closed. Rewind works only while the iterator si open, so it's supposed to work while you're stepping through the iteration. I fear you have to obtain a new iterator to repreat the iteration. giovanni 2013/10/23 Stefano Masera

[Qgis-developer] Labels: Title Case

2013-10-23 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all It is unclear to me whether the behaviour of this option is correct: if I have an UPPER CASE field content and apply the above option, I would expect to have it displayed as Upper Case, whereas it seems to be left unchanged: am I

Re: [Qgis-developer] Labels: Title Case

2013-10-23 Thread G. Allegri
Paolo, I can't see Title Case option in QGIS 2.0.1. Is it in dev? giovanni 2013/10/23 Paolo Cavallini cavall...@faunalia.it -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all It is unclear to me whether the behaviour of this option is correct: if I have an UPPER CASE field content and

Re: [Qgis-developer] Labels: Title Case

2013-10-23 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 23/10/2013 17:50, G. Allegri ha scritto: Paolo, I can't see Title Case option in QGIS 2.0.1. Is it in dev? Type case Capitalize first letter (IT translation should be improved BTW). So I would expect Upper case, whereas I have UPPERCASE. Salve.

Re: [Qgis-developer] Labels: Title Case

2013-10-23 Thread G. Allegri
Well, Capitalize first letter means... first letter, so UPPER CASE remains UPPER CASE :) 2013/10/23 Paolo Cavallini cavall...@faunalia.it -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 23/10/2013 17:50, G. Allegri ha scritto: Paolo, I can't see Title Case option in QGIS 2.0.1. Is it in

[Qgis-developer] QGIS context help

2013-10-23 Thread Alexander Bruy
Hi all and sorry for cross-posting. We already have context help for some dialogs in QGIS, but this texts available not for all dialog and most of them are outdated. Moreover, docs and this help used different format (RST for docs, HTML for context help). Keeping context help up-to-date requires

Re: [Qgis-developer] QGIS context help

2013-10-23 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 23/10/2013 18:51, Alexander Bruy ha scritto: Keeping context help up-to-date requires additional efforts and maybe separate team. Maybe it is better to drop context help in favor of documentation? Opinions? IMHO we should unify the two. The

Re: [Qgis-developer] QGIS context help

2013-10-23 Thread Jonathan Moules
On the issue of which format to use, pandoc can translate between most document formats it seems, including the ones specified by Alexander as being used by QGIS. Project is here: http://johnmacfarlane.net/pandoc/ The help should definitely be in a single format; ideally something that is easily

Re: [Qgis-developer] QgsRasterBlock.setColor(size_t, QRgb) in SIP

2013-10-23 Thread Martin Dobias
Hi Radim On Wed, Oct 23, 2013 at 10:02 PM, Radim Blazek radim.bla...@gmail.com wrote: I have a strange problem, block = QgsRasterBlock ( QGis.ARGB32_Premultiplied, 10, 10, 0 ) block.setColor( 0, QColor ().rgb() ) prints warning when run in QGIS Python shell (in QGIS debug output, not

Re: [Qgis-developer] QgsRasterBlock.setColor(size_t, QRgb) in SIP

2013-10-23 Thread Radim Blazek
On Wed, Oct 23, 2013 at 7:07 PM, Martin Dobias wonder...@gmail.com wrote: Hi Radim On Wed, Oct 23, 2013 at 10:02 PM, Radim Blazek radim.bla...@gmail.com wrote: I have a strange problem, block = QgsRasterBlock ( QGis.ARGB32_Premultiplied, 10, 10, 0 ) block.setColor( 0, QColor ().rgb() )

Re: [Qgis-developer] QGIS context help

2013-10-23 Thread Richard Duivenvoorde
On 23-10-13 18:51, Alexander Bruy wrote: Hi all and sorry for cross-posting. We already have context help for some dialogs in QGIS, but this texts available not for all dialog and most of them are outdated. Moreover, docs and this help used different format (RST for docs, HTML for context

[Qgis-developer] OpenLayers plugin bug

2013-10-23 Thread Brent Wood
Hi, I have a problem with this very useful plugin. If I load a Postgis dataset which includes points across 180, for data captured around New Zealand, using longitudes in the 0-360 space (which is valid data for EPSG:4326) they plot fine in QGIS. If I then start the plugin use a

Re: [Qgis-developer] QgsRasterBlock.setColor(size_t, QRgb) in SIP

2013-10-23 Thread Martin Dobias
On Thu, Oct 24, 2013 at 1:32 AM, Radim Blazek radim.bla...@gmail.com wrote: On Wed, Oct 23, 2013 at 7:07 PM, Martin Dobias wonder...@gmail.com wrote: When I enter those two lines into QGIS python console, it work fine (no debug output, result of setColor() call is True). Tested on linux 64bit,

Re: [Qgis-developer] Labels: Title Case

2013-10-23 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 23/10/2013 23:02, Nyall Dawson ha scritto: There's a bit of discussion regarding this at http://hub.qgis.org/issues/7611 I've added a reference to http://hub.qgis.org/issues/8938 thanks - -- Paolo Cavallini - Faunalia www.faunalia.eu Full