[gdal-dev] mapfile config options - scan directory

Frank Warmerdam warmerdam at pobox.com
Tue Sep 20 10:41:45 EDT 2011


On 11-09-20 05:47 AM, Travis Kirstine wrote:
> Hi All,
>
> I saw Frank's GDAL performance tips presentation at FOSS4G and he
> mentioned that a config option in a MS mapfile could be set to stop
> GDAL from scanning for auxiliary files when using external tiling.  I
> have looked around in the MS documentation and GDAL and cannot find
> the option.  If this option was set would it stop GDAL from using
> external worldfiles / overviews?

Travis,

The config option is documented at:

http://trac.osgeo.org/gdal/wiki/ConfigOptions#GDAL_DISABLE_READDIR_ON_OPEN

In MapServer you could add a line in the MAP object with:

   CONFIG "GDAL_DISABLE_READDIR_ON_OPEN" "ON"

This will not prevent finding world files and overviews.  It just means that
searching for them will require an active probe of the file system instead
of just consulting a loaded file list.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the gdal-dev mailing list