Re: [Qgis-developer] Compiling QGIS 2.4 with GCC 4.4 (debian squeeze)?

2014-07-31 Thread Todd Chisholm
Hi, I ran into this as well, again with Centos and gcc 4.4.7. There are handful of places with, for example: QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( ... ) : QgsAbstractFeatureIteratorFromSource( ... ) that needs to be switched to QgsVectorLayerFeatureIterator::QgsVect

[Qgis-developer] Select Features when editing (python)

2014-07-31 Thread Fred Lehodey
Hi, to select postgis features, I'm using something like: s = myLayer.getFeatures(QgsFeatureRequest().setFilterExpression(u'id=%s'%feat_id)) for f in s: myLayer.setSelectedFeatures([f.id()]) Works fine with existing features. How to do the same, during editing session of postgis layer, with

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Alessandro Pasotti
2014-07-31 16:50 GMT+02:00 Andreas Neumann : >> I'm still convinced that this is mainly a packaging problem. > > but for which distribution? Ubuntu, Debian, Fedora, Redhat, SuSE, > Windows, OSX? That's a lot of work for relatively few users on each > platform. > > I don't think that installing any

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 16:50, Andreas Neumann wrote: I don't think that installing any other geoserver (Geoserver, UMN, ArcGIS) is much easier. Maybe the documentation and tutorials are better - but installation - is this really a problem? But as I said - if someone wants to provide packages for a s

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Andreas Neumann
> I'm still convinced that this is mainly a packaging problem. but for which distribution? Ubuntu, Debian, Fedora, Redhat, SuSE, Windows, OSX? That's a lot of work for relatively few users on each platform. I don't think that installing any other geoserver (Geoserver, UMN, ArcGIS) is much easier.

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Alessandro Pasotti
2014-07-31 15:48 GMT+02:00 Andreas Neumann : > Everyone is invited to make a pull-request to the documentation or edit > the QGIS server tutorial on the wiki. > > Obviously - installing QGIS server is somewhat trickier than QGIS > desktop, because you have to deal with Apache, Apache rewriting, > p

[Qgis-developer] In a QGIS plugin, can't start a thread from a QDockWidget control...

2014-07-31 Thread Luc Lamoureux
I have to convert a QGIS plugin (2.2.0-Valmiera 32 bits) from a QDialog to a QDockWidget. While succeeding in doing the conversion (the plugin is now docked), the threads which are launched from the plugin do not work anymore. Any idea why this happens and how to solve this? Here is an example show

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Andreas Neumann
Everyone is invited to make a pull-request to the documentation or edit the QGIS server tutorial on the wiki. Obviously - installing QGIS server is somewhat trickier than QGIS desktop, because you have to deal with Apache, Apache rewriting, potentially also password protection, etc - and you have

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 12:16, Paolo Cavallini wrote: http://www.itopen.it/2014/03/13/qgis-server-setup-notes/ I confirm it does solve the issue. I think we should set up a simpler solution however. Thanks, and sorry for the noise. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at ww

Re: [Qgis-developer] Styles in PostgreSQL: impossible to restore

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 10:07, Paolo Cavallini wrote: Hi al. While migrating from one db to another, restoring the table layer_styles fails with: Found (thanks Luigi). Before restoring, XML should be set (in the session) to document: SET xmloption TO DOCUMENT Then restore runs smoothly. All the best.

Re: [Qgis-developer] Base maps not printed in LizMap?

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 10:46, Paolo Cavallini wrote: Hi all. Apparently base maps are not printed in LizMap; this is correct when using proprietary layers, but is a serious hindrance when using one's own layers (e.g. ortophoto). Just for the record: my mistake - setting a too low value in Project prope

Re: [Qgis-developer] Base maps not printed in LizMap?

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 10:46, Paolo Cavallini wrote: Hi all. Apparently base maps are not printed in LizMap; this is correct when using proprietary layers, but is a serious hindrance when using one's own layers (e.g. ortophoto). Is this confirmed? If so, is there a workaround for this? Apparently this i

Re: [Qgis-developer] Get signal on edited feature ?

2014-07-31 Thread Junior Delaz
Hello, For the first question, I think you have done something like logFeaturesAdded(Idofmylayer, features) instead of doing self.logFeaturesAdded(Idofmylayer, features).The function you created has three args : self, layerId, addfeatures. When using it you should give him three args. The second ex

Re: [Qgis-developer] Error in LizMap printing

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 11:02, Paolo Cavallini wrote: Hi all. When printing from LizMap, we frequently get a 500 (internal server) error. This happens when layers present in legend are not switched on in the legend. On apache log I see: [Thu Jul 31 10:55:08.533910 2014] [fcgid:warn] [pid 16838] [client

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Nathan Woodrow
Hey Soeren, Nothing yet. I might have some time next week for the plugin. - Nathan On Thu, Jul 31, 2014 at 7:26 PM, Sören Gebbert wrote: > Hi Nathan, > that is exactly what i am looking for. Do you have any release date or > is the plugin already available? > > Many thanks and best regards >

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Sören Gebbert
Hi Nathan, that is exactly what i am looking for. Do you have any release date or is the plugin already available? Many thanks and best regards Soeren 2014-07-31 10:37 GMT+02:00 Nathan Woodrow : > No something like this > > https://twitter.com/madmanwoo/status/478866023345426433 > > On Jul 31, 20

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Sören Gebbert
Hi Paolo, 2014-07-31 10:32 GMT+02:00 Paolo Cavallini : > On 2014-07-31 10:16, Sören Gebbert wrote: >> >> Dear list, >> i would like to know if it is possible to implement a plugin in QGIS >> to overlay two map layer for interactive comparison, like the Map >> Swipe tool in GRASS GIS[1,2]. >> >> If

Re: [Qgis-developer] Get signal on edited feature ?

2014-07-31 Thread dandrigo
Hello, thank for your reply. 1/ For my pyqgis plugin 2.2, i try to --- def logFeatureAdded(self,layerId,addfeatures): message = str(layerId) + " has features added: " for feature in addedFeatur

Re: [Qgis-developer] Base maps not printed in LizMap?

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 11:02, Andreas Neumann wrote: QGIS web client has a new feature to also print base maps (they are automatically replaced by corresponding QGIS layers). Just committed a Brilliant, thanks. All the best. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.fau

Re: [Qgis-developer] Base maps not printed in LizMap?

2014-07-31 Thread Andreas Neumann
Hi Paolo, QGIS web client has a new feature to also print base maps (they are automatically replaced by corresponding QGIS layers). Just committed a few days ago: https://github.com/qgis/QGIS-Web-Client/commit/2dfda6dc5346f4e409fad5550663b3332534e4a2 Of course this doesn't work for external layer

[Qgis-developer] Error in LizMap printing

2014-07-31 Thread Paolo Cavallini
Hi all. When printing from LizMap, we frequently get a 500 (internal server) error. This happens when layers present in legend are not switched on in the legend. On apache log I see: [Thu Jul 31 10:55:08.533910 2014] [fcgid:warn] [pid 16838] [client 127.0.0.1:39011] mod_fcgid: error reading d

[Qgis-developer] Base maps not printed in LizMap?

2014-07-31 Thread Paolo Cavallini
Hi all. Apparently base maps are not printed in LizMap; this is correct when using proprietary layers, but is a serious hindrance when using one's own layers (e.g. ortophoto). Is this confirmed? If so, is there a workaround for this? Thanks. -- Paolo Cavallini - Faunalia www.faunalia.eu Full co

[Qgis-developer] Pyqgis 2.2 : get signal on feature added + zoom to layer extent?

2014-07-31 Thread dandrigo
Hello, 1/ For my pyqgis plugin 2.2, i try to --- def logFeatureAdded(self,layerId,addfeatures): message = str(layerId) + " has features added: " for feature in addedFeatures:

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Nathan Woodrow
No something like this https://twitter.com/madmanwoo/status/478866023345426433 On Jul 31, 2014 6:32 PM, "Paolo Cavallini" wrote: > On 2014-07-31 10:16, Sören Gebbert wrote: > >> Dear list, >> i would like to know if it is possible to implement a plugin in QGIS >> to overlay two map layer for int

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Paolo Cavallini
On 2014-07-31 10:16, Sören Gebbert wrote: Dear list, i would like to know if it is possible to implement a plugin in QGIS to overlay two map layer for interactive comparison, like the Map Swipe tool in GRASS GIS[1,2]. If it is possible, what would be the best approach to implement it? Hi. You

Re: [Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Nathan Woodrow
Yes it can be done. I'm working on a plugin at the moment and as a core feature. Nathan On Jul 31, 2014 6:16 PM, "Sören Gebbert" wrote: > Dear list, > i would like to know if it is possible to implement a plugin in QGIS > to overlay two map layer for interactive comparison, like the Map > Swipe

[Qgis-developer] Map swipe tool in QGIS

2014-07-31 Thread Sören Gebbert
Dear list, i would like to know if it is possible to implement a plugin in QGIS to overlay two map layer for interactive comparison, like the Map Swipe tool in GRASS GIS[1,2]. If it is possible, what would be the best approach to implement it? Many thanks in advance, Best regards Soeren [1] http

[Qgis-developer] Styles in PostgreSQL: impossible to restore

2014-07-31 Thread Paolo Cavallini
Hi al. While migrating from one db to another, restoring the table layer_styles fails with: === psql:layer_styles.sql:250: ERROR: invalid XML content DETAIL: line 1: StartTag: invalid element name http://mrcc.com/qgis.dtd' 'SYSTEM'> ^ CONTEXT: COPY layer_styles, line 1, column styleqml: "PUB