[Qgis-developer] vector layers loaded using pyQGIS not isValid()
wonder.sk at gmail.com
Mon Apr 4 07:50:39 EDT 2011
On Mon, Apr 4, 2011 at 1:45 PM, Marco Lechner - FOSSGIS e.V.
<marco.lechner at fossgis.de> wrote:
> Am 04.04.2011 13:20, schrieb Martin Dobias:
>> you have to call QgsApplication.setPrefixPath() prior to call to
>> initQgis(). It is covered here:
>> Otherwise it fails to find data providers and thus it's impossible to
>> load layers.
> so this is
> QgsApplication.setPrefixPath("/usr/", True)
> But why did it work for the geotif?
Until qgis 1.7 the raster layers were using data provider system only
for WMS. Ordinary layers opened with GDAL didn't require providers.
More information about the Qgis-developer