Is there a way to automatically georeference fromPoint features upon creation?
I use this layer URI:
self.pinLayer = QgsVectorLayer( "Point?crs=epsg:3857&field=id:integer&field=description:string(120)&field=x:double&field=y:double&field=pluscode:string(20)&index=yes", "Pins", "memory")
I then set the pins using the QgsGeometry.fromPoint method:
feature = QgsFeature() feature.setGeometry(QgsGeometry.fromPoint(point))
Which works fine as you can see:
But the points are not georeferenced. Is there a way to add / do that right during creation?
I've found this old entry but its for raster layers and it also requires some user interaction (setting ground control points) I want to do it programmatically