Re: [Qgis-user] Rule based styling issue

2016-02-22 Thread David Addy
Hi again,
I see that Alexandre cannot reproduce this issue.
However, I am now using QGIS 2.12.3 and for me, on Windows 10 Pro, 64 bit,
it is still a problem, even with a different project and different fields. 
The issue of 'IS NOT NULL' still produces the reverse incorrect results when
using the expression builder.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5252035.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Rule based styling issue

2015-11-24 Thread David Addy
As this issue remains unresolved, should I post it as a bug?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5238251.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
I have a query about the use of Rule based styles.
I have a layer of parishes within a county area, which is  styled with a
transparent fill. Below it I have a copy layer of the same data.
In both layers the attribute table has a column headed WAPENTAKE, which
holds string data of 25 characters wide. Some of the fields contain a
wapentake name, and the remainder contain NULL.
I want the copy layer to display a certain style when the wapentake contains
a name, but nothing when the column wapentake contains NULL.

Now comes the problem. If I set the copy layer to a rule based style so that
it will display a coloured shading where there is data in the field
WAPENTAKE, I expect to use the filter of "WAPENTAKE" IS NOT NULL.
This works correctly if I double click on the filter section in the Style
window, and manually edit the filter to this expression.
If instead I open the ellepsis button (...) in order to use the Expression
builder to build the same expression, the result is the reverse of what I
want.  IE those with NULL content now show the selected style, and those
that have names in the column show no style.
Can anybody shed light on this issue please? What I am I doing wrong?

(I am using QGIS 2.8.3 under Windows 7 Professional, 64 bit)



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread James Keener
Is it possible that when you leave the expression editor and recompute
the styling the colors accidentally get reversed (e.g. the one for 0 is
now 1)?  I've had this happen to me a few times.

Would it be possible to take a couple screen shots of the workflow so
that we can see exactly what you mean?

Jim

On 10/01/2015 11:50 AM, David Addy wrote:
> I have a query about the use of Rule based styles.
> I have a layer of parishes within a county area, which is  styled with a
> transparent fill. Below it I have a copy layer of the same data.
> In both layers the attribute table has a column headed WAPENTAKE, which
> holds string data of 25 characters wide. Some of the fields contain a
> wapentake name, and the remainder contain NULL.
> I want the copy layer to display a certain style when the wapentake contains
> a name, but nothing when the column wapentake contains NULL.
> 
> Now comes the problem. If I set the copy layer to a rule based style so that
> it will display a coloured shading where there is data in the field
> WAPENTAKE, I expect to use the filter of "WAPENTAKE" IS NOT NULL.
> This works correctly if I double click on the filter section in the Style
> window, and manually edit the filter to this expression.
> If instead I open the ellepsis button (...) in order to use the Expression
> builder to build the same expression, the result is the reverse of what I
> want.  IE those with NULL content now show the selected style, and those
> that have names in the column show no style.
> Can anybody shed light on this issue please? What I am I doing wrong?
> 
> (I am using QGIS 2.8.3 under Windows 7 Professional, 64 bit)
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread James Keener
Interesting. I haven't noticed this behavior before. I'll see if I can
reproduce it on my end.

If you deselected the empty style in your pictures, does the problem
still occur? (I know, stupid question; I'd expect it not to matter)

Jim

PS: Note I'm not a dev, but I'm willing to help look into what's up, as
this is weird :)

On 10/01/2015 12:25 PM, David Addy wrote:
> Hi,
> First up comes how the styling should look.
>  
> Now two views using the Expression builder, showing the result:
>  
>  
> 
> Thanks for looking at this issue, and I hope these images  help. I note that
> the Expression builder returns '1' as the result, but this is assigned to
> the wrong polygons.
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
Hi,
First up comes how the styling should look.
 
Now two views using the Expression builder, showing the result:
 
 

Thanks for looking at this issue, and I hope these images  help. I note that
the Expression builder returns '1' as the result, but this is assigned to
the wrong polygons.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread DelazJ
Hi,
David, in expression_builder2 picture, there is a "no filter" rule (which
means all the features of your layer) at the top of the "WAPENTAKE" IS NOT
NULL rule.
Try to replace the rule "no filter" by *else* or just delete it to see.

Regards,
Harrissou

2015-10-01 18:50 GMT+02:00 James Keener :

> Interesting. I haven't noticed this behavior before. I'll see if I can
> reproduce it on my end.
>
> If you deselected the empty style in your pictures, does the problem
> still occur? (I know, stupid question; I'd expect it not to matter)
>
> Jim
>
> PS: Note I'm not a dev, but I'm willing to help look into what's up, as
> this is weird :)
>
> On 10/01/2015 12:25 PM, David Addy wrote:
> > Hi,
> > First up comes how the styling should look.
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/correct_style_result.jpg
> >
> > Now two views using the Expression builder, showing the result:
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/Expression_builder1.jpg>
> > <
> http://osgeo-org.1560.x6.nabble.com/file/n5227414/Expression_builder2.jpg>
> >
> > Thanks for looking at this issue, and I hope these images  help. I note
> that
> > the Expression builder returns '1' as the result, but this is assigned to
> > the wrong polygons.
> >
> >
> >
> > --
> > View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227414.html
> > Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Rule based styling issue

2015-10-01 Thread David Addy
Hi all,
Thanks for the suggestions and ideas.
I have tried deleting the "no filter" rule,  as suggested, but it makes no
difference.
I have also tried both the 'Add rule' buttons and the 'Amend rule ' button
to bring up the Expression builder. 
I have  used the 'Amend Rule' on the "no filter" line so as to eliminate the
'spare' line, and proceed to build the expression using the Expression
Builder, but I continue to get the same result.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Rule-based-styling-issue-tp5227403p5227449.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user