Re: [Qgis-developer] Adding modules in Processing

2014-09-08 Thread skampus
thank you victor, i will try... s. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-modules-in-Processing-tp5160553p5160768.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer m

Re: [Qgis-developer] Crash of QGIS 2.4 built on RHEL 6 with Qt 5.3

2014-09-08 Thread Dave Johansen
Yep, QWT and QWT-Polar were the offending libraries. Once I built a Qt5 version and used this, QGIS 2.4 loaded up just fine on RHEL 6. Thanks for the help, Dave On Mon, Sep 8, 2014 at 3:52 AM, Matthias Kuhn wrote: > Hi Dave, > > Maybe it could be QWT (and QWT-Polar) which are linked against Qt4?

Re: [Qgis-developer] Getting center of layer in lat/long

2014-09-08 Thread Mark Coletti
Ok, I figured it out on my own. Here're the code snippets for computing the center of a layer in geographic coordinates, and then doing the same for the current viewport. First by layer: layerCenter = layer.extent().center() if layer.crs().geographicFlag() : # if already lat/lon

Re: [Qgis-developer] Getting center of layer in lat/long

2014-09-08 Thread Mark Coletti
On Fri, Jun 13, 2014 at 7:24 PM, Nathan Woodrow wrote: > Hey Mark > > I think you are over thinking it ;) > > Iface.mapCanvas().extent() will give you the event of the view. > Extent.center() for the middle. > > You can transform this using the coordinate transformation classes. > > > That'd be n

Re: [Qgis-developer] In the Browser panel *.qgs files are not visible

2014-09-08 Thread Régis Haubourg
Hi, +1 for the need, I would suggest we have the following choice when clicking on a qgs file: - open as new (and close current project) - import layers/ embed layers > dialog to choose layers to import or embed (a checkbox to choose) Cheers Régis -- View this message in context: http://os

Re: [Qgis-developer] Support for field aliases in expressions

2014-09-08 Thread Régis Haubourg
+1 here( as a user)! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Support-for-field-aliases-in-expressions-tp5160686p5160713.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mai

Re: [Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Alexandre Neto
Hello Nyall, On Mon, Sep 8, 2014 at 1:12 PM, Nyall Dawson wrote: > > It's not stored in QgsComposition (unfortunately... this needs to > change sometime!). Try: > > for composer_view in composers: >print composer_view.composerWindow().windowTitle() > > > Nyall > It worked well (and I would

Re: [Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Nyall Dawson
On 8 September 2014 22:27, Salvatore Larosa wrote: > Hi Nyall, > > On Mon, Sep 8, 2014 at 2:12 PM, Nyall Dawson wrote: >> >> It's not stored in QgsComposition (unfortunately... this needs to >> change sometime!). Try: >> >> for composer_view in composers: >>print composer_view.composerWindow(

Re: [Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Salvatore Larosa
Hi Nyall, On Mon, Sep 8, 2014 at 2:12 PM, Nyall Dawson wrote: > > It's not stored in QgsComposition (unfortunately... this needs to > change sometime!). Try: > > for composer_view in composers: >print composer_view.composerWindow().windowTitle() shouldn't be useful having here a convenience

Re: [Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Nyall Dawson
On 8 September 2014 21:52, Alexandre Neto wrote: > Hello all, > > For an expression function I'm trying to select a composition by searching > for the composer name/title. > > I know I can get all active composers by using: > >> composers = iface.activeComposers() > > > I can then access to the Qg

[Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Alexandre Neto
Hello all, For an expression function I'm trying to select a composition by searching for the composer name/title. I know I can get all active composers by using: composers = iface.activeComposers() I can then access to the QgsComposerView by iterating the composers list: for composer_view in

[Qgis-developer] Support for field aliases in expressions

2014-09-08 Thread Matthias Kuhn
Hi, I today was discussing the idea of support for column aliases in expressions. The use-case for this is that engineers using GIS in their language will be able to use the same field names that they are used to (but not in the common database which is english) to filter the attribute table

Re: [Qgis-developer] Crash of QGIS 2.4 built on RHEL 6 with Qt 5.3

2014-09-08 Thread Matthias Kuhn
Hi Dave, Maybe it could be QWT (and QWT-Polar) which are linked against Qt4? You will probably have to recompile such dependencies as well. On Fri 05 Sep 2014 08:24:33 PM CEST, Dave Johansen wrote: On Thu, Sep 4, 2014 at 11:38 PM, Matthias Kuhn mailto:matthias.k...@gmx.ch>> wrote: Hi Dav