[Qgis-developer] PyQGIS standalone without x server

Ziegler Stefan Stefan.Ziegler at bd.so.ch
Tue Oct 28 03:47:09 PDT 2014


Hi 

Since I do not have access to a server w/o x server I cannot test it by myself. Does anybody know if a running x server is required to run pyqgis standalone apps? E.g. something like this:

app = QApplication(sys.argv)
QgsApplication.setPrefixPath("/home/stefan/Apps/qgis_master", True)
QgsApplication.initQgis()

QgsProject.instance().setFileName(os.path.join(current_dir,  "bpav5000sw.qgs"))
QgsProject.instance().read():

QgsApplication.exitQgis()

Best regards
Stefan 


Freundliche Grüsse 
Stefan Ziegler 
Kantonsgeometer 

Amt für Geoinformation
Amtliche Vermessung 
Rötistrasse 4 
4500 Solothurn 

Telefon +41 32 627 75 96
Telefax +41 32 627 75 98 
stefan.ziegler at bd.so.ch
http://www.so.ch 



More information about the Qgis-developer mailing list