Re: [Qgis-user] rule based classification - attribute based on other layer

2015-03-26 Thread Andreas Neumann

Hi,

Note that, if you work on QGIS 2.8, getFeature() and attribute() are 
already part of core - no need to install a plugin.


However, there may be a quite negative impact on performance, if you 
include such functions in your symbology impressions. So use them with 
care, only if you really need them!


Andreas

On 26.03.2015 16:10, Matteo Ghetta wrote:

sorry... plugin installed...
I see all the functions in the field calculator but do you have a 
small and quick example of what I am looking for?

I don't understand the function to use..

Thanks!

Matteo

2015-03-25 19:11 GMT+01:00 Junior Delaz >:


Hello,
You may give a look to /getFeature/ function (combining or not
with function like /attribute/ or spatial ones). There is also
/RefFunctions/ plugin that may help to use values/fields of
another layer.
But unfortunately, there is no list of such layers nor their
fields in the dialog. You need to write them yourself and their
values.

2015-03-25 18:14 GMT+01:00 Matteo Ghetta mailto:matteo.ghe...@gmail.com>>:

Hi all,
very simple question.
In the rule-based classification (vector) is it possible to
use values of another layer loaded in QGIS?

For example. Point vector and I want to display as red each
feature that has a value greater than a value stored in
another point layer (or in a table).
In the expression builder there are the fields of the active
layer.

Is it possible to call the fields of other layers?

Thanks

Cheers

Matteo



___
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 classification - attribute based on other layer

2015-03-26 Thread Matteo Ghetta
sorry... plugin installed...
I see all the functions in the field calculator but do you have a small and
quick example of what I am looking for?
I don't understand the function to use..

Thanks!

Matteo

2015-03-25 19:11 GMT+01:00 Junior Delaz :

> Hello,
> You may give a look to *getFeature* function (combining or not with
> function like *attribute* or spatial ones). There is also *RefFunctions*
> plugin that may help to use values/fields of another layer.
> But unfortunately, there is no list of such layers nor their fields in the
> dialog. You need to write them yourself and their values.
>
> 2015-03-25 18:14 GMT+01:00 Matteo Ghetta :
>
>> Hi all,
>> very simple question.
>> In the rule-based classification (vector) is it possible to use values of
>> another layer loaded in QGIS?
>>
>> For example. Point vector and I want to display as red each feature that
>> has a value greater than a value stored in another point layer (or in a
>> table).
>> In the expression builder there are the fields of the active layer.
>>
>> Is it possible to call the fields of other layers?
>>
>> Thanks
>>
>> Cheers
>>
>> Matteo
>>
>>
>>
>> ___
>> 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 classification - attribute based on other layer

2015-03-26 Thread Matteo Ghetta
Hi,
I cannot install the plugin.. I have a missing library (qtsql)...
anyway thanks for clarifying..

Matteo

2015-03-25 19:11 GMT+01:00 Junior Delaz :

> Hello,
> You may give a look to *getFeature* function (combining or not with
> function like *attribute* or spatial ones). There is also *RefFunctions*
> plugin that may help to use values/fields of another layer.
> But unfortunately, there is no list of such layers nor their fields in the
> dialog. You need to write them yourself and their values.
>
> 2015-03-25 18:14 GMT+01:00 Matteo Ghetta :
>
>> Hi all,
>> very simple question.
>> In the rule-based classification (vector) is it possible to use values of
>> another layer loaded in QGIS?
>>
>> For example. Point vector and I want to display as red each feature that
>> has a value greater than a value stored in another point layer (or in a
>> table).
>> In the expression builder there are the fields of the active layer.
>>
>> Is it possible to call the fields of other layers?
>>
>> Thanks
>>
>> Cheers
>>
>> Matteo
>>
>>
>>
>> ___
>> 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 classification - attribute based on other layer

2015-03-26 Thread Matteo Ghetta
>
> Sounds like you are trying Red if valueA > max(layer B value)?
>

exactly... :)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] rule based classification - attribute based on other layer

2015-03-25 Thread Junior Delaz
Hello,
You may give a look to *getFeature* function (combining or not with
function like *attribute* or spatial ones). There is also *RefFunctions*
plugin that may help to use values/fields of another layer.
But unfortunately, there is no list of such layers nor their fields in the
dialog. You need to write them yourself and their values.

2015-03-25 18:14 GMT+01:00 Matteo Ghetta :

> Hi all,
> very simple question.
> In the rule-based classification (vector) is it possible to use values of
> another layer loaded in QGIS?
>
> For example. Point vector and I want to display as red each feature that
> has a value greater than a value stored in another point layer (or in a
> table).
> In the expression builder there are the fields of the active layer.
>
> Is it possible to call the fields of other layers?
>
> Thanks
>
> Cheers
>
> Matteo
>
>
>
> ___
> 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 classification - attribute based on other layer

2015-03-25 Thread Alex Mandel
Maybe but only if you table join 1st (or spatial join).
Are you trying to style feature A if it intersects with layer B features?

Purely based on comparison of values is kinda unusual and probably
doesn't exist yet.

Sounds like you are trying Red if valueA > max(layer B value)?

Thanks,
Alex

On 03/25/2015 10:14 AM, Matteo Ghetta wrote:
> Hi all,
> very simple question.
> In the rule-based classification (vector) is it possible to use values of
> another layer loaded in QGIS?
> 
> For example. Point vector and I want to display as red each feature that
> has a value greater than a value stored in another point layer (or in a
> table).
> In the expression builder there are the fields of the active layer.
> 
> Is it possible to call the fields of other layers?
> 
> Thanks
> 
> Cheers
> 
> Matteo

> 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] rule based classification - attribute based on other layer

2015-03-25 Thread Matteo Ghetta
Hi all,
very simple question.
In the rule-based classification (vector) is it possible to use values of
another layer loaded in QGIS?

For example. Point vector and I want to display as red each feature that
has a value greater than a value stored in another point layer (or in a
table).
In the expression builder there are the fields of the active layer.

Is it possible to call the fields of other layers?

Thanks

Cheers

Matteo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user