[Qgis-developer] PyQGIS and checking WMS layers have data
Stott James
fmrojst at fylkesmannen.no
Thu Oct 10 02:26:05 PDT 2013
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:luipir at gmail.com]
Sendt: 9. oktober 2013 20:30
Til: Stott James
Kopi: qgis-developer at 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.pirelli at faunalia.it<mailto:luigi.pirelli at faunalia.it>)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131010/53ef3a9e/attachment.html>
More information about the Qgis-developer
mailing list