[Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread kimaidou
Hi all, Preamble : I am not a QGIS core rendering guru, nor an opengl/webgl, etc. one. In web mapping contexts, major improvements are made in 2D vector rendering speed by using WebGl technology, such as in upcoming OpenLayers 3. As a user point of view, improvement seems huge compared to

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread Vincent Picavet
Hello, Le jeudi 24 octobre 2013 09:54:06, kimaidou a écrit : [..] In web mapping contexts, major improvements are made in 2D vector rendering speed by using WebGl technology, such as in upcoming OpenLayers 3. As a user point of view, improvement seems huge compared to classical DOM or more

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread G. Allegri
We would probably begin with porting QGIS to QT5, as OpenGL support has been added to QT5 and improved in 5.1. See for example : http://qt-project.org/doc/qt-5.0/qtopengl/2dpainting.html Otherwise, reimplementing an pure OpenGL rendering engine seems a big effort. And we still would want

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread kimaidou
2013/10/24 Vincent Picavet vincent...@oslandia.com Hello, Le jeudi 24 octobre 2013 09:54:06, kimaidou a écrit : [..] In web mapping contexts, major improvements are made in 2D vector rendering speed by using WebGl technology, such as in upcoming OpenLayers 3. As a user point of view,

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread A Huarte
There is also a more ambitious option, detach in QGIS the render of the objects of the painting technology ( Currently Qt+QPainter ) using interfaces as Ogre, Irrlicht or OSG does.  Then could be implemented several 2D/3D-CPU/GPU renderers ( Qt4-5, OpenGL, OpenGL ES, Ogre, OSG ...) being the

Re: [Qgis-developer] Select all elements in the view ...

2013-10-24 Thread Geo DrinX
Hello all again, From PyQgis, I need to export (to my own format) only the elements contained in the QGis view. So, I taken the canvas coordinates and I created a string that has the expression syntax: text = self.iface.mapCanvas().extent().toString() text1 =

Re: [Qgis-developer] Select all elements in the view ...

2013-10-24 Thread Nathan Woodrow
Hey Roberto, No need for all that :) This is all you need: rq = QgsFeatureRequest(iface.mapCanvas().extent()) for feature in layer.getFeatures(rq): ... http://www.qgis.org/api/classQgsFeatureRequest.html - Nathan On Thu, Oct 24, 2013 at 8:11 PM, Geo DrinX geodr...@gmail.com wrote:

Re: [Qgis-developer] Select all elements in the view ...

2013-10-24 Thread Geo DrinX
Great Nathan !!! This is all you need: rq = QgsFeatureRequest(iface.mapCanvas().extent()) for feature in layer.getFeatures(rq): You are the best: you solved in a second all my ploblems :) Thank thank thank you. Roberto ___ Qgis-developer

[Qgis-developer] GEarthView 1.0.3

2013-10-24 Thread Geo DrinX
Hello, I inserted a new version of GEarthView plugin for QGis. When possible, please test it for the approval These are the updates: - Added publishing in KML also vector elements inside the view (with attributes) - Added an info panel Regards Roberto

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread Marco Hugentobler
Hi all Qt already has an open gl based paint device ( QGLPixelBuffer ), so the effect of hardware acceleration can be tested just by replacing the QImage with a pixel buffer. I did this years ago and ( can't remember the Qt version ), the rendering with QGLPixelBuffer was slower on my

Re: [Qgis-developer] What about OpenGL renderding ?

2013-10-24 Thread Martin Dobias
Hi Marco On Thu, Oct 24, 2013 at 6:32 PM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: Hi all Qt already has an open gl based paint device ( QGLPixelBuffer ), so the effect of hardware acceleration can be tested just by replacing the QImage with a pixel buffer. I did this years

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

2013-10-24 Thread Radim Blazek
On Thu, Oct 24, 2013 at 3:46 AM, Martin Dobias wonder...@gmail.com wrote: 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

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

2013-10-24 Thread Radim Blazek
Related issue http://hub.qgis.org/issues/6505 Radim On Thu, Oct 24, 2013 at 4:40 PM, Radim Blazek radim.bla...@gmail.com wrote: On Thu, Oct 24, 2013 at 3:46 AM, Martin Dobias wonder...@gmail.com wrote: On Thu, Oct 24, 2013 at 1:32 AM, Radim Blazek radim.bla...@gmail.com wrote: On Wed, Oct 23,

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

2013-10-24 Thread gene
and you can use a simple dictionary: fields = layer.pendingFields() field_names = [field.name() for field in fields] for elem in layer.getFeatures(): atr = dict(zip(field_names, elem.attributes())) The result is a Python dictionary: {u'DIP_DIR': 120, u'STRATI_TYP': 1, u'DIP':

Re: [Qgis-developer] [Qgis-user] Opening view or table using DBManager locks it in postgis

2013-10-24 Thread Giuseppe Sucameli
Hi Alexandre, On Tue, Oct 22, 2013 at 10:58 AM, Alexandre Neto senhor.n...@gmail.comwrote: Yes, I believe it is. At least the fact that only closing QGIS releases the locks. I've pushed a fix for this issue. Please, confirm if it works now. Cheers. Giuseppe You can even create several