[QGIS-Developer] QGIS processing model: extract specific attribute of a single feature to a string

Ujaval Gandhi ujaval at spatialthoughts.com
Tue Aug 11 01:15:43 PDT 2020


I can think of a slightly hacky way. Use the 'Basic Statistics for Field'
algorithm, and since your field will have a single value, use either the
Minimum or Maximum value output from it (works for string fields too) as
the parameter for another algorithm.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: ujaval at spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Tue, Aug 11, 2020 at 1:23 PM Andreas Neumann <a.neumann at carto.net> wrote:

> Hi,
>
> In a model I aggregate values to a single feature. Then I would like to
> extract a specific aggregated attribute to a string so I can use it as the
> input parameter of another algorithm.
>
> I fail to find a way to do that. Aggregation works fine, string
> concatenation as well, but I fail to find a way to extract an attribute of
> a single feature to a string.
>
> Any ideas?
>
> I'm on QGIS 3.10, but if necessary I could also use a newer QGIS version.
>
> Thanks,
>
> Andreas
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200811/18bc07ec/attachment-0001.html>


More information about the QGIS-Developer mailing list