[QGIS-Developer] How to Access Renderer Style Info in Processing Algorithms
Luigi Pirelli
luipir at gmail.com
Thu Aug 6 13:59:50 PDT 2020
maybe after get it source (QgsProcessingAlgorithm.asSource =>
https://qgis.org/api/classQgsProcessingFeatureSource.html and from there
with layer name you can find registered layer that not necessarily is a
rendered layer.
Luigi Pirelli
**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
<https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
* Hire a team: http://www.qcooperative.net
**************************************************************************************************
On Thu, 6 Aug 2020 at 18:56, C Hamilton <adenaculture at gmail.com> wrote:
> How do I access a layer's style information in the processing
> algorithm. If it was outside processing it would be layer.renderer(). As
> far as I can tell I cannot access it from a
> QgsProcessingParameterFeatureSource.
>
> Thanks,
>
> Calvin
> _______________________________________________
> 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/20200806/b4c2bafc/attachment.html>
More information about the QGIS-Developer
mailing list