Thanks for the suggestion. I have taken a slightly different approach, and I am checking the file size of my PDFs using the following:
os.path.getsize(file) There is an obvious difference between the file sizes of the PDFs where the wms loaded, and those where it failed. If the pdf is too small, it tries to create it again. Hopefully it won't get stuck in a loop where if it fails once it will always fail!! James Fra: Gino Pirelli [mailto:lui...@gmail.com] Sendt: 9. oktober 2013 20:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] PyQGIS and checking WMS layers have data probally solution is connecting to the slots of the QgsRasterLayer class public slots: void showStatusMessage( const QString & theMessage ); /** \brief Propagate progress updates from GDAL up to the parent app */ void updateProgress( int, int ); /** \brief receive progress signal from provider */ void onProgress( int, double, QString ); ciao Luigi Pirelli (luigi.pire...@faunalia.it<mailto:luigi.pire...@faunalia.it>)
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer