[QGIS-Developer] Can I automatically style a layer generated with a Processing Sink?

C Hamilton adenaculture at gmail.com
Wed Sep 12 05:03:53 PDT 2018


Nyall,

Thank you so much for your help. That was exactly what I needed and I don't
think I would have figured that one out.

Calvin


Actually the best approach is to use a layer post processor. This is
> flexible and totally thread-safe :)
>
> I don't think there's any Python examples in QGIS yet, but see
>
> https://github.com/qgis/QGIS/blob/master/src/analysis/processing/
> qgsalgorithmcategorizeusingstyle.cpp#L104
>
> and
>
> https://github.com/qgis/QGIS/blob/master/src/analysis/processing/
> qgsalgorithmimportphotos.cpp#L227
>
> for some c++ examples.
>
> Here's a possible Python example:
>
> https://gist.github.com/nyalldawson/26c091dd48b4f8bf56f172efe22cf75f
>
> Nyall
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180912/577714f8/attachment.html>


More information about the QGIS-Developer mailing list