<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""><div class="">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">In python you may check the `</span>processing.core.Processing.RenderingStyles` that enable you to associate a style (as a qml file) to a pair (alg, output). It is also possible to </div><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">do that from the Qgis GUI  ( but I do not remember the details ). </div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 11 sept. 2018 à 20:00, C Hamilton <<a href="mailto:adenaculture@gmail.com" class="">adenaculture@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">In a processing routine I create an output vector layer. <br class=""></div><div class=""><br class=""></div><div class="">        self.addParameter(<br class="">            QgsProcessingParameterFeatureSink(<br class="">                self.PrmOutputLayer,<br class="">                tr('Output layer'))<br class="">            )<br class=""></div><div class=""><br class=""></div><div class="">        (sink, dest_id) = self.parameterAsSink(parameters,<br class="">            self.PrmOutputLayer, context, fields, QgsWkbTypes.LineString, srcCRS)<br class=""></div><div class=""><br class=""></div><div class="">I would like to style the output layer by enabling a label based off of one of the fields. Can I do this in Processing? I guess what I would like to get is the actual vector layer that is created. Is that possible?<br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Calvin<br class=""></div></div></div></div>
_______________________________________________<br class="">QGIS-Developer mailing list<br class=""><a href="mailto:QGIS-Developer@lists.osgeo.org" class="">QGIS-Developer@lists.osgeo.org</a><br class="">List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer<br class="">Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer</div></blockquote></div><br class=""></div></body></html>