Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from qgis.core import *
  2. # supply path to where is your qgis installed
  3. QgsApplication.setPrefixPath("/path/to/qgis/installation", True)
  4. # load providers
  5. QgsApplication.initQgis()
  6.  
  7. from qgis.core.contextmanagers import qgisapp
  8. with qgisapp() as app:
  9. #do stuff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement