I am trying to import a .shp file and CSV file so that I can join data. I have written below code in Python console within QGIS. For Layer.isvalid()
, I am getting False. I am using QGIS 3 and on Windows 7. I don't know where I am making a mistake.
Since I am using Python console inside QGIS do I need to set environment variables?
layer = QgsVectorLayer("file:///C:Test/t1_2013_06_tract/t1_2013_06_tract.shp","BuildingLayer","ogr")
layer.isValid()
layer=QgsVectorLayer("C:Test/t1_2013_06_tract/t1_2013_06_tract.shp","BuildingLayer","ogr")