Hi Luca, On Fri, Apr 1, 2011 at 9:14 AM, <[email protected]> wrote:
> I've searched across documentation and mailing list, but I didn't found a > page explaining how to set a symbol. > create your style within QGis and save it as e.g. "point.qml" in your plugin folder, then load it using this snapshot: import os.path style_path = os.path.join( os.path.dirname(__file__), "point.qml" ) (errorMsg, result) = vectorLayer.loadNamedStyle( style_path ) So to change the style of the layer it consists just in a file replacing without any change in your code. Cheers. > For example: > > - point layer: I want to use a circle with width 0.5 and gray colour with > black border; > - line layer: width 1 and continous green line > > any hint? > > Thank you in advance. > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Giuseppe Sucameli
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
