I am trying to add a Shapefile outside of the QGIS environment using PyQGIS. Ideally this would be done without creating a map in QGIS. I've started with the code below but am receiving the following error:
QObject::connect: Cannot connect <null>::raiseError< QString > to QgsVectorLayer::raiseError< QString >
Does the command below create a new map canvas?
from qgis.core import *
import qgis.utils
layer = QgsVectorLayer("F:\\IrrigatedLands\\FC_qgis\\boundary.shp", "testlayer_shp", "ogr")
#if not layer.isValid():
#print "Layer failed to load!"