<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks for support to Paolo Cavallini - Faunalia !<br></span></div><div><span>Can you give some detailed steps for OTB plugin in GRASS ?<br></span></div><div><span>Bets regards,<br></span></div><div><span>Dan<br></span></div><div><br></div>  <div style="font-size: 12pt; font-family: "times new roman", "new york", "times", serif"> <div style="font-size: 12pt; font-family: "times new roman", "new york", "times", serif"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> "qgis-user-request@lists.osgeo.org" <qgis-user-request@lists.osgeo.org><br> <b><span style="font-weight: bold;">To:</span></b> qgis-user@lists.osgeo.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 29, 2011 12:33
 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Qgis-user Digest, Vol 70, Issue 61<br> </font> <br>Send Qgis-user mailing list submissions to<br>    <a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:qgis-user-request@lists.osgeo.org" href="mailto:qgis-user-request@lists.osgeo.org">qgis-user-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:qgis-user-owner@lists.osgeo.org" href="mailto:qgis-user-owner@lists.osgeo.org">qgis-user-owner@lists.osgeo.org</a><br><br>When
 replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Qgis-user digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Add new template to the composer (Marco Hugentobler)<br>   2. Re: New Labeling: conditional labels (Giuseppe Sucameli)<br>   3. GRASS plugin instability on Windows? (Paolo Cavallini)<br>   4. fragstat question (dan laurentiu stoica)<br>   5. Re: fragstat question (Paolo Cavallini)<br>   6. Re: Add new template to the composer (Paolo Cavallini)<br>   7. Re: GRASS plugin instability on Windows? (Alexander Bruy)<br>   8. Re: New Labeling: conditional labels (Andreas Neumann)<br>   9. Re: GRASS plugin instability on Windows? (Paolo Cavallini)<br>  10. Re: New Labeling: conditional labels (Paolo Cavallini)<br>  11. Re: New Labeling: conditional labels (Nathan
 Woodrow)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 28 Dec 2011 19:05:41 +0100<br>From: Marco Hugentobler <<a ymailto="mailto:marco.hugentobler@sourcepole.ch" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>><br>Subject: Re: [Qgis-user] Add new template to the composer<br>To: <a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>Message-ID: <<a ymailto="mailto:4EFB5A75.2070601@sourcepole.ch" href="mailto:4EFB5A75.2070601@sourcepole.ch">4EFB5A75.2070601@sourcepole.ch</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi Yves<br><br>Add a new directory called 'composer_templates' into /usr/share/qgis and <br>save template files into it ('Save as template' in print composer <br>window). The composermanager creates a new entry for each template in <br>that
 directory.<br>Btw, that functionality was developed for the edugeo project ;-)<br><br>Regards,<br>Marco<br><br>On 28.12.2011 16:52, Yves Jacolin wrote:<br>> Hello,<br>><br>> When I open the composer manager, there is a dropdown list to choose the<br>> template for the new composer. There is always one item and I can't see how to<br>> change this (add a new template for instance).<br>><br>> Furthermore, easyPrint use a specific template that don't fit for everybody need<br>> and therefore this plugins is not so usefull.<br>><br>> Do you know any way to create template for the composer?<br>><br>> Thanks,<br>><br>> Y.<br>> _______________________________________________<br>> Qgis-user mailing list<br>> <a ymailto="mailto:Qgis-user@lists.osgeo.org" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br><br><br>-- <br>Dr. Marco Hugentobler<br>Sourcepole -  Linux&  Open Source Solutions<br>Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland<br><a ymailto="mailto:marco.hugentobler@sourcepole.ch" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>Technical Advisor QGIS Project Steering Committee<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 28 Dec 2011 20:01:43 +0100<br>From: Giuseppe Sucameli <<a ymailto="mailto:sucameli@faunalia.it" href="mailto:sucameli@faunalia.it">sucameli@faunalia.it</a>><br>Subject: Re: [Qgis-user] New Labeling: conditional labels<br>To: Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>><br>Cc: qgis-user <<a
 ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID:<br>    <CAA6k8-+6Jc_+<a ymailto="mailto:H3bjE2n15aRXtsKpLoi9NTZCiG7Y8C--qjbEtQ@mail.gmail.com" href="mailto:H3bjE2n15aRXtsKpLoi9NTZCiG7Y8C--qjbEtQ@mail.gmail.com">H3bjE2n15aRXtsKpLoi9NTZCiG7Y8C--qjbEtQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Hi Andreas,<br><br>On Thu, Dec 22, 2011 at 2:31 PM, Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:<br>> What I want is that a label is only drawn if a column value is larger than<br>> 0. I don't want to label features with a value of zero.<br>><br>> Do you have any hints how the syntax works for such a case? I see ">"<br>> operators but no "if" or "when".<br><br>there's no "if" operator, but ">" returns 1 if true and 0 if
 false,<br>e.g. (field > 5)*10 let's give you 10 or 0 as result.<br><br>The problem is that you don't want to display anything when<br>the field value is 0, so we can use the substr function.<br><br>Here's the solution to your problem:<br>substr(id, 0, (id > 0)*-1)<br>that means if id <= 0 then substr(id, 0, 0) else substr(id, 0, -1)<br><br>In general:<br>substr(output, 0, (condition)*-1)<br><br>Cheers.<br><br>> If it is not possible, then I can still do it in Postgis, but it would be<br>> nice being able to do this in QGIS.<br>><br>> Thanks for any hints,<br>> Andreas<br>><br>> --<br>> --<br>> Andreas Neumann<br>> Böschacherstrasse 10A<br>> 8624 Grüt (Gossau ZH)<br>> Switzerland<br>> _______________________________________________<br>> Qgis-user mailing list<br>> <a ymailto="mailto:Qgis-user@lists.osgeo.org" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>> <a
 href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br><br><br><br>-- <br>Giuseppe Sucameli<br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 29 Dec 2011 07:43:50 +0100<br>From: Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>Subject: [Qgis-user] GRASS plugin instability on Windows?<br>To: qgis-user <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID: <<a ymailto="mailto:4EFC0C26.2030809@faunalia.it" href="mailto:4EFC0C26.2030809@faunalia.it">4EFC0C26.2030809@faunalia.it</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Hi all.<br>I recently had reports about some instability of the GRASS plugin on windows.<br>(Un)fortunately I cannot test it, as I do not own a win licence, so
 I'm asking here:<br>* is this a common problem?<br>* can be related to anything specific?<br>- Win version<br>- installed software<br>- does it happen on "dirty" installations only, or also on clean ones?<br>- antivirus?<br>* when (at what QGIS version) has the problem arisen?<br>Thanks a lot.<br>-- <br>Paolo Cavallini - Faunalia<br>www.faunalia.eu<br>Full contact details at www.faunalia.eu/pc<br><br><br>------------------------------<br><br>Message: 4<br>Date: Thu, 29 Dec 2011 00:36:33 -0800 (PST)<br>From: dan laurentiu stoica <<a ymailto="mailto:dan_sezu@yahoo.com" href="mailto:dan_sezu@yahoo.com">dan_sezu@yahoo.com</a>><br>Subject: [Qgis-user] fragstat question<br>To: "<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>" <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID: <<a
 ymailto="mailto:1325147793.7553.YahooMailNeo@web33807.mail.mud.yahoo.com" href="mailto:1325147793.7553.YahooMailNeo@web33807.mail.mud.yahoo.com">1325147793.7553.YahooMailNeo@web33807.mail.mud.yahoo.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>Does anyone have some hints for the use of Fragstat with Q GIS ?<br><br>Dan<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/b5949e53/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/b5949e53/attachment-0001.html</a><br><br>------------------------------<br><br>Message: 5<br>Date: Thu, 29 Dec 2011 09:55:13 +0100<br>From: Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>Subject: Re: [Qgis-user] fragstat question<br>To: <a
 ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>Message-ID: <<a ymailto="mailto:4EFC2AF1.5070700@faunalia.it" href="mailto:4EFC2AF1.5070700@faunalia.it">4EFC2AF1.5070700@faunalia.it</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Il 29/12/2011 09:36, dan laurentiu stoica ha scritto:<br>> Does anyone have some hints for the use of Fragstat with Q GIS ?<br>> Dan<br><br>Hi Dan [I already sent this, did you receive it?].<br>AFAIK there is nothing like Fragstat ready-made in QGIS. You have two routes:<br>- r.li (GRASS module), not yet implemented in QGIS, you'll need GRASS<br>- OTB plugin (methods should be added for the analyses you need).<br>All the best.<br><br>-- <br>Paolo Cavallini - Faunalia<br>www.faunalia.eu<br>Full contact details at www.faunalia.eu/pc<br><br><br>------------------------------<br><br>Message: 6<br>Date: Thu, 29 Dec 2011 10:54:06
 +0100<br>From: Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>Subject: Re: [Qgis-user] Add new template to the composer<br>To: <a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>Message-ID: <<a ymailto="mailto:4EFC38BE.7040609@faunalia.it" href="mailto:4EFC38BE.7040609@faunalia.it">4EFC38BE.7040609@faunalia.it</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Il 28/12/2011 19:05, Marco Hugentobler ha scritto:<br>> Hi Yves<br>> <br>> Add a new directory called 'composer_templates' into /usr/share/qgis and save<br>> template files into it ('Save as template' in print composer window). The<br>> composermanager creates a new entry for each template in that directory.<br><br>Hi all.<br>Wouldn't it be better using the /home dir instead of /usr/share/qgis for this?<br>All the
 best.<br><br>-- <br>Paolo Cavallini - Faunalia<br>www.faunalia.eu<br>Full contact details at www.faunalia.eu/pc<br><br><br>------------------------------<br><br>Message: 7<br>Date: Thu, 29 Dec 2011 12:22:50 +0200<br>From: Alexander Bruy <<a ymailto="mailto:alexander.bruy@gmail.com" href="mailto:alexander.bruy@gmail.com">alexander.bruy@gmail.com</a>><br>Subject: Re: [Qgis-user] GRASS plugin instability on Windows?<br>To: <a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a><br>Cc: qgis-user <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID:<br>    <CALuHMPBEKdP_zEeCx+09AgGBFc8CQmiT9k+eymuzugtVZfe+<a ymailto="mailto:Tg@mail.gmail.com" href="mailto:Tg@mail.gmail.com">Tg@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Hi,<br><br>I can confirm problems with output messages
 encoding [0] under<br>32 bit Windows XP Pro SP3, 32 and 64 bit Windows 7. This happen<br>on clean and dirty installations and seems not releated to any<br>specific software.<br><br>[0] <a href="http://hub.qgis.org/issues/3164" target="_blank">http://hub.qgis.org/issues/3164</a><br><br>2011/12/29 Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>>:<br>> Hi all.<br>> I recently had reports about some instability of the GRASS plugin on windows.<br>> (Un)fortunately I cannot test it, as I do not own a win licence, so I'm asking here:<br>> * is this a common problem?<br>> * can be related to anything specific?<br>> - Win version<br>> - installed software<br>> - does it happen on "dirty" installations only, or also on clean ones?<br>> - antivirus?<br>> * when (at what QGIS version) has the problem arisen?<br>> Thanks a lot.<br><br>-- <br>Alexander
 Bruy<br><br><br>------------------------------<br><br>Message: 8<br>Date: Thu, 29 Dec 2011 11:25:38 +0100<br>From: Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>><br>Subject: Re: [Qgis-user] New Labeling: conditional labels<br>To: Giuseppe Sucameli <<a ymailto="mailto:sucameli@faunalia.it" href="mailto:sucameli@faunalia.it">sucameli@faunalia.it</a>><br>Cc: qgis-user <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID: <<a ymailto="mailto:005bdda6961afb7b0722c7f96daca412@carto.net" href="mailto:005bdda6961afb7b0722c7f96daca412@carto.net">005bdda6961afb7b0722c7f96daca412@carto.net</a>><br>Content-Type: text/plain; charset=UTF-8; format=flowed<br><br> Hi Giuseppe,<br><br> Thanks for your hint with the syntax - it works in my case.<br><br> I think I sort of understand the syntax - at
 least the > operator and <br> the substr. What I do not understand is why I need the *-1 (multiplier).<br><br> But I think the syntax is far from being intuitive, without some help. <br> Maybe we can come up with a simple solution in the future?<br><br> If we could combine the rule-based renderer approach with the current <br> labeler (with its new query builder), it would be awesome.<br><br> Thanks for your help!<br><br> Andreas<br><br> On Wed, 28 Dec 2011 20:01:43 +0100, Giuseppe Sucameli wrote:<br>> Hi Andreas,<br>><br>> On Thu, Dec 22, 2011 at 2:31 PM, Andreas Neumann <br>> <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:<br>>> What I want is that a label is only drawn if a column value is <br>>> larger than<br>>> 0. I don't want to label features with a value of zero.<br>>><br>>> Do you have any hints how the syntax works for such a case? I
 see <br>>> ">"<br>>> operators but no "if" or "when".<br>><br>> there's no "if" operator, but ">" returns 1 if true and 0 if false,<br>> e.g. (field > 5)*10 let's give you 10 or 0 as result.<br>><br>> The problem is that you don't want to display anything when<br>> the field value is 0, so we can use the substr function.<br>><br>> Here's the solution to your problem:<br>> substr(id, 0, (id > 0)*-1)<br>> that means if id <= 0 then substr(id, 0, 0) else substr(id, 0, -1)<br>><br>> In general:<br>> substr(output, 0, (condition)*-1)<br>><br>> Cheers.<br>><br>>> If it is not possible, then I can still do it in Postgis, but it <br>>> would be<br>>> nice being able to do this in QGIS.<br>>><br>>> Thanks for any hints,<br>>> Andreas<br>>><br>>> --<br>>> --<br>>> Andreas Neumann<br>>> Böschacherstrasse 10A<br>>>
 8624 Grüt (Gossau ZH)<br>>> Switzerland<br>>> _______________________________________________<br>>> Qgis-user mailing list<br>>> <a ymailto="mailto:Qgis-user@lists.osgeo.org" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br><br>-- <br> --<br> Andreas Neumann<br> Böschacherstrasse 10A<br> 8624 Grüt (Gossau ZH)<br> Switzerland<br><br><br>------------------------------<br><br>Message: 9<br>Date: Thu, 29 Dec 2011 11:25:09 +0100<br>From: Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>Subject: Re: [Qgis-user] GRASS plugin instability on Windows?<br>To: Alexander Bruy <<a ymailto="mailto:alexander.bruy@gmail.com"
 href="mailto:alexander.bruy@gmail.com">alexander.bruy@gmail.com</a>><br>Cc: qgis-user <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>><br>Message-ID: <<a ymailto="mailto:4EFC4005.5040503@faunalia.it" href="mailto:4EFC4005.5040503@faunalia.it">4EFC4005.5040503@faunalia.it</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Il 29/12/2011 11:22, Alexander Bruy ha scritto:<br><br>> I can confirm problems with output messages encoding [0] under<br>> 32 bit Windows XP Pro SP3, 32 and 64 bit Windows 7. This happen<br>> on clean and dirty installations and seems not releated to any<br>> specific software.<br><br>Thanks for feedback - but this does not ionvolve any instability, right?<br>All the best.<br><br>-- <br>Paolo Cavallini - Faunalia<br>www.faunalia.eu<br>Full contact details at www.faunalia.eu/pc<br><br><br>------------------------------<br><br>Message:
 10<br>Date: Thu, 29 Dec 2011 11:27:51 +0100<br>From: Paolo Cavallini <<a ymailto="mailto:cavallini@faunalia.it" href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>><br>Subject: Re: [Qgis-user] New Labeling: conditional labels<br>To: <a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>Message-ID: <<a ymailto="mailto:4EFC40A7.7000108@faunalia.it" href="mailto:4EFC40A7.7000108@faunalia.it">4EFC40A7.7000108@faunalia.it</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Il 29/12/2011 11:25, Andreas Neumann ha scritto:<br><br>> If we could combine the rule-based renderer approach with the current labeler (with<br>> its new query builder), it would be awesome.<br><br>Agreed, I think we must use the same approach everywhere (renderer, field calculator,<br>raster calculator, actions), and the labelling approach is the best IMHO. Others are<br>often a bit
 geeky.<br>All the best.<br><br>-- <br>Paolo Cavallini - Faunalia<br>www.faunalia.eu<br>Full contact details at www.faunalia.eu/pc<br><br><br>------------------------------<br><br>Message: 11<br>Date: Thu, 29 Dec 2011 20:33:07 +1000<br>From: Nathan Woodrow <<a ymailto="mailto:madmanwoo@gmail.com" href="mailto:madmanwoo@gmail.com">madmanwoo@gmail.com</a>><br>Subject: Re: [Qgis-user] New Labeling: conditional labels<br>To: Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>><br>Cc: qgis-user <<a ymailto="mailto:qgis-user@lists.osgeo.org" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>>,    Giuseppe Sucameli<br>    <<a ymailto="mailto:sucameli@faunalia.it" href="mailto:sucameli@faunalia.it">sucameli@faunalia.it</a>><br>Message-ID:<br>    <<a
 ymailto="mailto:CAAi8Yg9A_9zZD3WVDyOgJqrpRZYyoMJr4mFZYZcJqfsmkggMvw@mail.gmail.com" href="mailto:CAAi8Yg9A_9zZD3WVDyOgJqrpRZYyoMJr4mFZYZcJqfsmkggMvw@mail.gmail.com">CAAi8Yg9A_9zZD3WVDyOgJqrpRZYyoMJr4mFZYZcJqfsmkggMvw@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>It would be handy to add condition statements to QgsExpression so we can<br>support this kind of thing, Martin would be the guy to talk to about adding<br>this kind of thing.  He knows the most about QgsExpression.<br><br>I am also looking at adding Python support to any sections that also use<br>QgsExpression; this would allow us to use a QGIS expression for simple-ish<br>stuff but also Python if need be for doing more powerful stuff.<br><br>I started a wiki page[0] before the last Hackfest about some of my ideas<br>about adding rule based labeling, which would be very cool to have.<br><br>[0] <a
 href="http://hub.qgis.org/wiki/quantum-gis/RuleBasedLabelingIdeas" target="_blank">http://hub.qgis.org/wiki/quantum-gis/RuleBasedLabelingIdeas</a><br><br>- Nathan<br><br>On Thu, Dec 29, 2011 at 8:25 PM, Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>>wrote:<br><br>> Hi Giuseppe,<br>><br>> Thanks for your hint with the syntax - it works in my case.<br>><br>> I think I sort of understand the syntax - at least the > operator and the<br>> substr. What I do not understand is why I need the *-1 (multiplier).<br>><br>> But I think the syntax is far from being intuitive, without some help.<br>> Maybe we can come up with a simple solution in the future?<br>><br>> If we could combine the rule-based renderer approach with the current<br>> labeler (with its new query builder), it would be awesome.<br>><br>> Thanks for your help!<br>><br>>
 Andreas<br>><br>><br>> On Wed, 28 Dec 2011 20:01:43 +0100, Giuseppe Sucameli wrote:<br>><br>>> Hi Andreas,<br>>><br>>> On Thu, Dec 22, 2011 at 2:31 PM, Andreas Neumann <<a ymailto="mailto:a.neumann@carto.net" href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>><br>>> wrote:<br>>><br>>>> What I want is that a label is only drawn if a column value is larger<br>>>> than<br>>>> 0. I don't want to label features with a value of zero.<br>>>><br>>>> Do you have any hints how the syntax works for such a case? I see ">"<br>>>> operators but no "if" or "when".<br>>>><br>>><br>>> there's no "if" operator, but ">" returns 1 if true and 0 if false,<br>>> e.g. (field > 5)*10 let's give you 10 or 0 as result.<br>>><br>>> The problem is that you don't want to display anything when<br>>> the field value is 0,
 so we can use the substr function.<br>>><br>>> Here's the solution to your problem:<br>>> substr(id, 0, (id > 0)*-1)<br>>> that means if id <= 0 then substr(id, 0, 0) else substr(id, 0, -1)<br>>><br>>> In general:<br>>> substr(output, 0, (condition)*-1)<br>>><br>>> Cheers.<br>>><br>>>  If it is not possible, then I can still do it in Postgis, but it would be<br>>>> nice being able to do this in QGIS.<br>>>><br>>>> Thanks for any hints,<br>>>> Andreas<br>>>><br>>>> --<br>>>> --<br>>>> Andreas Neumann<br>>>> Böschacherstrasse 10A<br>>>> 8624 Grüt (Gossau ZH)<br>>>> Switzerland<br>>>> ______________________________**_________________<br>>>> Qgis-user mailing list<br>>>> <a ymailto="mailto:Qgis-user@lists.osgeo.org"
 href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>>>> <a href="http://lists.osgeo.org/**mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/**mailman/listinfo/qgis-user</a><<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>><br>>>><br>>><br>> --<br>> --<br>> Andreas Neumann<br>> Böschacherstrasse 10A<br>> 8624 Grüt (Gossau ZH)<br>> Switzerland<br>> ______________________________**_________________<br>> Qgis-user mailing list<br>> <a ymailto="mailto:Qgis-user@lists.osgeo.org" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/**mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/**mailman/listinfo/qgis-user</a><<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/d362fa83/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/d362fa83/attachment.html</a><br><br>------------------------------<br><br>_______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br><br><br>End of Qgis-user Digest, Vol 70, Issue 61<br>*****************************************<br><br><br> </div> </div>  </div></body></html>