Skip to main content
added 4 characters in body
Source Link
artwork21
  • 35.2k
  • 8
  • 67
  • 134

I used the following line to try and add a vector shapefile to my qgis map, though it gives me "invalid layer" errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command? *on Mac OSX

I used the following line to try and add a vector shapefile to my qgis map, though it gives me "invalid layer" errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command? *on Mac OSX

I used the following line to try and add a vector shapefile to my qgis map, though it gives me "invalid layer" errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command? *on Mac OSX

Post Closed as "Not suitable for this site" by PolyGeo
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
added 9 characters in body
Source Link
jrowley
  • 247
  • 1
  • 8

imac: add vector layer in python

I used the following line to try and add a vector shapefile to my qgis map, though it gives me syntax"invalid layer" errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command? *on Mac OSX

add vector layer in python

I used the following line to try and add a vector shapefile to my qgis map, though it gives me syntax errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command?

imac: add vector layer in python

I used the following line to try and add a vector shapefile to my qgis map, though it gives me "invalid layer" errors. Does anyone see something I don't?

iface.addVectorLayer(r"/Users/pgcseismolab/Desktop/jaden_pgc_archive/Wells/WD/Shapefiles/wd_14/wd14.shp","test","ogr")

I'm fairly new to python- do I have to define a variable before running this command? *on Mac OSX

added 2 characters in body
Source Link
jrowley
  • 247
  • 1
  • 8
Loading
Source Link
jrowley
  • 247
  • 1
  • 8
Loading