[Qgis-user] Processing: how to use input parameter in "Select by expression"

Andreas Neumann a.neumann at carto.net
Wed Jan 21 09:07:21 PST 2015


Hi Victor,

I figured out that it has to be a string and that I can only put the 
full expression string in the parameter.

Yes, having the ability to derive parameters from other parameters by 
concatenating/converting/calculating them would be very nice and would 
bring us one step closer to FME-like functionality. We could use the 
existing QGS Expression editor for that.

Thanks,
Andreas

On 21.01.2015 16:48, Victor Olaya wrote:
> The expression field in the selection algorithm is of type String. You
> can connect any model input or algorithms output of that same type.
> Since your 'year' input is of type number, it cannot be connected :-(
>
> It would be great to be able to derive strings from other strings or
> numbers, but that's not yet implemented
>
> Hope this helps
>
> 2015-01-16 6:46 GMT+01:00 Andreas Neumann <a.neumann at carto.net>:
>> Along the lines - I am generally unsure how I can connect input parameters
>> in algorithms. Sometimes they magically appear in the algorithm to be
>> chosen. Sometimes they don't. Is there a general way to connect input
>> parameters to be used as variables for algorithm parameters?
>>
>> Thanks,
>> Andreas
>>
>>
>> On 16.01.2015 06:34, Andreas Neumann wrote:
>>> Hi,
>>>
>>> In QGIS processing I would like to do the following:
>>>
>>> Input Parameters:
>>> - Vector Layer
>>> - Numeric input parameter (year)
>>>
>>> Use the "select by expression" algorithm.
>>>
>>> Question: how can I use the value of the "year" input variable to be used
>>> in the expression. Is there a special syntax to retrieve the values of input
>>> parameters?
>>>
>>> Thanks a lot!
>>>
>>> Andreas
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list