daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. layer = QgsVectorLayer(r'//Users//rwegener//repos//correlations//co_energy_weather_shpfiles//co_energy_weather.shp',
  2.                    'degree_days', "memory")
  3. if not layer.isValid():
  4.     print('layer failed to load')
  5.    
  6. layer = QgsVectorLayer(r'/Users//rwegener//repos//correlations//co_energy_weather_shpfiles//co_energy_weather.shp',
  7.                    'degree_days', "memory")
  8. layer = QgsVectorLayer(r'/Users/rwegener/repos/correlations/co_energy_weather_shpfiles/co_energy_weather.shp',
  9.                    'degree_days', "memory")
  10. layer = QgsVectorLayer(r'\Users\rwegener\repos\correlations\co_energy_weather_shpfiles\co_energy_weather.shp',
  11.                    'degree_days', "memory")
  12.    
  13. layer = iface.addVectorLayer(r'//Users//rwegener//repos//correlations//co_energy_weather_shpfiles//co_energy_weather.shp',
  14.                    'degree_days', "memory")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top