Creation of Point Data (New Layer) using Python Program in QGIS

Hi Viewers, Here you will come to know the process of creation of new point data using Python in QGIS. From this video, we can learn how to create points, Procedure to save the data (file) and program to add the data (file). Follow the following steps/processes to complete the task: layer = QgsVectorLayer(’Point?crs=EPSG:4326’, ’point’, ’memory’) provider = () ([QgsField(’Name’, )]) ([QgsField(’ID’, )]) () f = QgsFeature() p1 = QgsPointXY(, ) p2 = QgsPointXY(, ) p3 = QgsPointXY(, ) p4 = QgsPointXY(, ) ((p1)) ([’Lower Left’,1]) (f) ((p2)) ([’Upper Left’,2]) (f) ((p3))
Back to Top