Also, might be a good idea to spawn a separate thread to generate the aux file 
in the background...




________________________________
From: Frank Warmerdam <[email protected]>
To: Tim Sutton <[email protected]>
Cc: qgis-developer <[email protected]>
Sent: Tuesday, August 9, 2011 5:51 PM
Subject: Re: [Qgis-developer] slow raster loading

On Tue, Aug 9, 2011 at 2:37 PM, Tim Sutton <[email protected]> wrote:
>
> Yes thats why I was asking if the file permissions exist to write the
> aux.xml. If they don't behaviour should be the same as prior to my
> native raster stats commits i.e. stats will be recalced each time you
> open a project / add a layer and trigger something that needs the
> stats.

Tim, and others,

By the way, there is a mechanism in GDAL to support storing .aux.xml
information in an alternative directory when the file cannot be
created on the target directory due to permissions, read-only media, etc.

This is enabled by setting the GDAL_PAM_PROXY_DIR option to
point to a directory where files can be written.   If there is a place
known to QGIS that would be good for this, it might make sense
to take advantage of this.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to