On Tue, 30 Oct 2018 at 06:39, Roberto Herrero <apabard...@gmail.com> wrote: > > getFeatures() and fields() do not seem to work in Qgis3.2
They 100% work -- if they didn't, QGIS wouldn't be good for anything except wasting some space on your computer ;) > # Open vector layer > LayerName = u'Vector_layer.shp' > VectorLayer = qgis.core.QgsVectorLayer(LayerName, 'mylayer', 'ogr') I suspect this is where the issue sits -- try checking assert VectorLayer.isValid() here. My suspicion is that your relative path 'Vector_layer.shp' is not working, and will need to be an absolute path. Nyall _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user