I am trying to create a memory layer:
tempLayer = QgsVectorLayer('LineString', 'my_temp_layer', 'memory')
But as soon as this line is excecuted (not when I add it to the map!) the CRS dialog pops up. How do I intercept that?
I know I can set the CRS, but that does not help, since the dialog pops up when the first line is executed...
tempLayer = QgsVectorLayer('LineString', 'trassen_tmp_bfp', 'memory') tempLayer.setCrs(QgsCoordinateReferenceSystem(4326))