How can I define the layer CRS for a memory layer in pyqgis

المشرف العام

Administrator
طاقم الإدارة
how can I define the CRS for a memory layer from the qgis project settings

vpoi = QgsVectorLayer("Point", "vectpoi", "memory") feature = QgsFeature() feature.setGeometry(QgsGeometry.fromPoint(QgsPoint(10,10))) provider = vpoly.dataProvider() ... and how can I define the CRS from another loaded layer?

thanks a lot



أكثر...
 
أعلى