<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi Tim-</span></div><div><span>&nbsp;&nbsp;&nbsp; I understand that the stats are only gathered when needed. Still, I think users should have the option to compute stats and possibly other support files on load. This could be accomplished via a preference/setting or a pop-up dialog. In theory, you could have a thread pool to generate the support files in the background. The size of the thread pool could be determined by a user preference/setting. <br></span></div><div><br></div><div>Just a thought.</div><div><br></div><div>Take Care,<br><span></span></div><div><span>Peter<br></span></div><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:
 bold;">From:</span></b> Tim Sutton &lt;lists@linfiniti.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Peter Borissow &lt;peter.borissow@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Frank Warmerdam &lt;warmerdam@pobox.com&gt;; qgis-developer &lt;qgis-developer@lists.osgeo.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 10, 2011 5:46 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Qgis-developer] slow raster loading<br></font><br>Hi<br><br>On Wed, Aug 10, 2011 at 12:20 AM, Peter Borissow<br>&lt;<a ymailto="mailto:peter.borissow@yahoo.com" href="mailto:peter.borissow@yahoo.com">peter.borissow@yahoo.com</a>&gt; wrote:<br>&gt; Also, might be a good idea to spawn a separate thread to generate the aux<br>&gt; file in the background...<br>&gt;<br><br>It could be a possibility but the way things are set up now, stats are<br>only gathered when really needed, and if you need
 then for the<br>activity you are doing you would have to wait for them anyway. The<br>only merrit of using a separate thread would be if we decided to start<br>gathering complete stats on first load of a raster in the background<br>always so that they are preemptively there when the user does<br>something that needs stats. However I don't know if that is a good<br>idea - if you have many rasters in a project that need stats it will<br>spawn many threads and the IO / CPU overhead may be unpleasant.<br><br>Regards<br><br>Tim<br><br>&gt;<br>&gt; ________________________________<br>&gt; From: Frank Warmerdam &lt;<a ymailto="mailto:warmerdam@pobox.com" href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;<br>&gt; To: Tim Sutton &lt;<a ymailto="mailto:lists@linfiniti.com" href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>&gt;<br>&gt; Cc: qgis-developer &lt;<a ymailto="mailto:qgis-developer@lists.osgeo.org"
 href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>&gt;<br>&gt; Sent: Tuesday, August 9, 2011 5:51 PM<br>&gt; Subject: Re: [Qgis-developer] slow raster loading<br>&gt;<br>&gt; On Tue, Aug 9, 2011 at 2:37 PM, Tim Sutton &lt;<a ymailto="mailto:lists@linfiniti.com" href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Yes thats why I was asking if the file permissions exist to write the<br>&gt;&gt; aux.xml. If they don't behaviour should be the same as prior to my<br>&gt;&gt; native raster stats commits i.e. stats will be recalced each time you<br>&gt;&gt; open a project / add a layer and trigger something that needs the<br>&gt;&gt; stats.<br>&gt;<br>&gt; Tim, and others,<br>&gt;<br>&gt; By the way, there is a mechanism in GDAL to support storing .aux.xml<br>&gt; information in an alternative directory when the file cannot be<br>&gt; created on the target directory due to permissions,
 read-only media, etc.<br>&gt;<br>&gt; This is enabled by setting the GDAL_PAM_PROXY_DIR option to<br>&gt; point to a directory where files can be written.&nbsp; If there is a place<br>&gt; known to QGIS that would be good for this, it might make sense<br>&gt; to take advantage of this.<br>&gt;<br>&gt; Best regards,<br>&gt; --<br>&gt; ---------------------------------------+--------------------------------------<br>&gt; I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam,<br>&gt; <a ymailto="mailto:warmerdam@pobox.com" href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>&gt; light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>&gt; and watch the world go round - Rush&nbsp; &nbsp; | Geospatial Software Developer<br>&gt; _______________________________________________<br>&gt; Qgis-developer mailing list<br>&gt; <a
 ymailto="mailto:Qgis-developer@lists.osgeo.org" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>&gt;<br>&gt;<br>&gt;<br><br><br><br>-- <br>Tim Sutton - QGIS Project Steering Committee Member (Release&nbsp; Manager)<br>==============================================<br>Please do not email me off-list with technical<br>support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>&nbsp;* QGIS programming and support services<br>&nbsp;* Mapserver and PostGIS based hosting plans<br>&nbsp;* FOSS Consulting Services<br>Skype: timlinux<br>Irc: timlinux on #qgis at
 freenode.net<br>==============================================<br><br><br></div></div></div></body></html>