[Qgis-developer] Multiple Fields in R-Processing

Victor Olaya volayaf at gmail.com
Thu Sep 22 06:30:00 PDT 2016


Matteo

For the multiple field you dont supply the fields or options. It takes
them from the parent layer and you can select several, instead of one,
as the PArameterTableField does

Hope this helps

2016-09-22 14:48 GMT+02:00 matteo <matteo.ghetta at gmail.com>:
> Hi guys,
>
> I have a small problem with the integration of the MultipleField
> parameter in the R-Processing script.
>
> The trial script is super simple:
>
> ##[R-Geostatistics]=group
> ##l=vector
> ##X=multiple Field l
>
>>X
>
> So I just want to understand how can I extract the single fields of the
> parameter.
>
> Doing so the script runs, but I always get the same error:
>
>
>
> Source: "/tmp/processing510ec5d19fc74c0582fbe8983bd85e66", layer:
> "1474548069.5615"
> with 102 features
> It has 6 fields
> multiple Field l="Gruppo;SN"
> Error: unexpected symbol in "multiple Field"
> Execution halted
>
>
> I tried several other combinations but I'm running out of fantasy.
>
> With the selection parameter it is simpler:
>
>
> ##type=selection point;lines;point&lines
>
>>type
>
>
> and the output is 0 (so the first chosen).
>
>
> The parameter can be accessed here:
>
> import processing
> from processing.core.parameters import ParameterTableMultipleFiel
>
>
>
> Thanks guys
>
> Matteo
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list