how to resize feature in qgis python?

by vaibhav Dhiman   Last Updated May 05, 2017 04:22 AM

this code adds a qgs point to a layer. but how to increase the size of feature ? thank you in advance for help

layer =  QgsVectorLayer('Point', 'points' , "memory")
pr = layer.dataProvider()
pt = QgsFeature()
point1 = QgsPoint(-4080198.52,1492348.027)
pt.setGeometry(QgsGeometry.fromPoint(point1))
pr.addFeatures([pt])
layer.updateExtents()
QgsMapLayerRegistry.instance().addMapLayers([layer])


Related Questions



How to use processing in a PyQT plugin in QGis

Updated July 19, 2017 15:22 PM

Make donut polygons with python in QGIS

Updated January 25, 2018 10:22 AM

Button won't work for plug-in in QGIS

Updated April 21, 2018 23:22 PM