Timeline for opening vector layer in QGIS (3, 32bit) python (3.6) standalone application?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 25, 2018 at 19:58 | vote | accept | Jonas | ||
Mar 25, 2018 at 0:04 | history | edited | PolyGeo♦ | CC BY-SA 3.0 |
deleted 27 characters in body; edited tags
|
Mar 24, 2018 at 23:23 | answer | added | Jonas | timeline score: 1 | |
Mar 24, 2018 at 13:31 | comment | added | Jonas | Hey @AndreasMüller i tried installing QGIS 2.18 (together with python 2.7) and running the script in with these settings; it stills does not treat the .shp as valid. | |
Mar 23, 2018 at 22:47 | comment | added | Andreas Müller | QgsMapLayerRegistry has been removed from the qgis api. And there is very little documentation at the moment, especially the python cookbook for qgis isn't up to date. Do you have the possibility to try it in Qgis2 environment? | |
Mar 23, 2018 at 16:28 | comment | added | Jonas | I dont think that works; i have put it on the next line, and it produces the error "QgsMapLayerRegistry is not defined" | |
Mar 23, 2018 at 13:07 | comment | added | artwork21 | Put it after the layer = QgsVectorLayer() statement and see if it adds the layer into Q or not. | |
Mar 23, 2018 at 11:50 | comment | added | Jonas | I am quite new to PyQGIS, where should it be placed? | |
Mar 23, 2018 at 11:41 | comment | added | artwork21 | Did you try adding it using this statement, QgsMapLayerRegistry.instance().addMapLayer(layer) | |
Mar 23, 2018 at 11:14 | history | asked | Jonas | CC BY-SA 3.0 |