On Mon, Jan 26, 2009 at 8:06 PM, Tomasz Suchan wrote:
> Hi all,
> I'm trying to experiment with PyQGIS but I'm experiencing some problems...
> When adding shapefile I get:
>
from qgis.core import *
QgsApplication.setPrefixPath("/usr/share/qgis", True)
Hi Tomasz,
the prefix is incorrect
Hi all,
I'm trying to experiment with PyQGIS but I'm experiencing some problems...
When adding shapefile I get:
>>> from qgis.core import *
>>> QgsApplication.setPrefixPath("/usr/share/qgis", True)
>>> QgsApplication.initQgis()
>>> vlayer = QgsVectorLayer("test.shp", "test", "ogr")
Failed to load