タグ付けされた質問 「standalone」

2
QGIS openlayers_pluginをスタンドアロンのpythonスクリプトで読み込む方法(QGIS組み込みpythonコンソールではありません)
スタンドアロンアプリケーションでopenlayersプラグインをロードしようとすると、パスが設定されていてプラグインが利用可能であると表示されていても、常にFalseで失敗します。 (Ubuntu 14.04、QGIS 2.4、python-2.7でテスト済み) #!/usr/bin/python # -*- coding: utf-8 -*- import sys, os import qgis import qgis.gui, qgis.utils from qgis.core import * from PyQt4 import QtGui # open an app app = QtGui.QApplication(sys.argv) # supply path to where is your qgis installed QgsApplication.setPrefixPath(u'/usr', True) # load providers QgsApplication.initQgis() # set …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.