[Qgis-developer] problem with VACUUM in DB Manager

2014-12-03 Thread Matteo Ghetta
Hi all, maybe a problem in QGIS 2.6 with VACUUM analyze on both database and schemas but not on single tables. This is the error: Errore durante l'esecuzione di codice Python: Traceback (most recent call last): File

[Qgis-developer] QtXml is no longer maintained in Qt5

2014-12-03 Thread Matthias Kuhn
Hi, As of Qt5, QtXml is no longer actively maintained [1] PyQt5 does not even support it. It will be a reasonably big undertaking to migrate any occurrence of QDomDocument etc. to QXMLStreamWriter and QXMLStreamReader (our whole project saving and loading engine is based on this). And when we do

[Qgis-developer] LoadFromTemplate method broken?

2014-12-03 Thread Vincent Damoy
Hello all, Since QGIS 2.6, the LoadFromTemplate method seems not work any more (or works differently?) This is my code to add items in my composer from a template : |self.composition= self.composerView.composition() file1=QtCore.QFile('ComposerTemplate.qpt') doc=QtXml.QDomDocument()

Re: [Qgis-developer] QtXml is no longer maintained in Qt5

2014-12-03 Thread Marco Hugentobler
Hi Matthias It will be a reasonably big undertaking to migrate any occurrence of QDomDocument etc. to QXMLStreamWriter and QXMLStreamReader From a quick look, it seems QXMLStreamReader is more like a SAX parser. If so, it is not a full replacement for the DOM classes. Regards, Marco On

Re: [Qgis-developer] problem with VACUUM in DB Manager

2014-12-03 Thread Salvatore Larosa
Hi, On Wed, Dec 3, 2014 at 3:41 PM, Matteo Ghetta matteo.ghe...@gmail.com wrote: Hi all, maybe a problem in QGIS 2.6 with VACUUM analyze on both database and schemas but not on single tables. This is the error: Errore durante l'esecuzione di codice Python: Traceback (most recent call

Re: [Qgis-developer] QtXml is no longer maintained in Qt5

2014-12-03 Thread Matthias Kuhn
Hi Marco, I didn't look at it in detail and just based this recommendation on the one from the QtXml documentation linked at the end of the original message. Is there something in particular you think we will be missing? If so, it might be good to start looking for alternative ways to go.

[Qgis-developer] Retrieve field name used as label

2014-12-03 Thread Tom Chadwin
Hello all I'm trying to build labelling into qgis2leaf. How do I retrieve the name of the field used as a layer's label? I've tried QgsLabel::labelField ( int attr ), but I don't understand what the argument attr is. Thanks Tom -- View this message in context:

[Qgis-developer] Rotation and raster renderer

2014-12-03 Thread Sandro Santilli
While vector rendering is now rotation-aware (in my branch), the same is not true for raster renderer. For what I understand we need: - Adding rotation info in QgsRasterViewPort (degrees and center) - Adding rotation support in QgsRasterDrawer Should that be enough ? Should we encode rotation

Re: [Qgis-developer] Installin IntraMaps Roam

2014-12-03 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 03/12/2014 07:54, Nathan Woodrow ha scritto: We (DMS) support the application as we develop it. We have a lot of clients using it so we continue to support them or anyone else that is using it. In fact I just made the latest release about an

[Qgis-developer] Cannot load python after compiling master

2014-12-03 Thread Mikhail Tchernychev
Hi, I downloaded and compiled latest git snapshot. However when I try to run qgis I am getting: ouldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File , line 1, in File /home/misha/opt/qgis-dev/share/qgis/python/qgis/__init__.py, line 36, in

Re: [Qgis-developer] LoadFromTemplate method broken?

2014-12-03 Thread Nyall Dawson
On 4 December 2014 at 02:14, Vincent Damoy vincent.da...@espaces-naturels.fr wrote: Hello all, Since QGIS 2.6, the LoadFromTemplate method seems not work any more (or works differently?) This is my code to add items in my composer from a template : self.composition =

[Qgis-developer] Fail to create raster layer in C++ but is able to do so in python

2014-12-03 Thread eliu1234
I am trying to add a raster layer in c++ application with QtCreator and QGIS 2.6.0. I am currently trying to create a 32bit application under 64 bit windows system. I am not sure if this would be the cause. My code is as follows: QgsRasterLayer * layer = new