gdaltindex & subdirectories

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Mon Oct 3 05:46:03 EDT 2005


Hi Jeroen,

you can do this with for loops in DOS or on Linux.

On DOS something like:
for /R %i in (d:\myfiles\rasters\*.tif) do gdaltindex tile.shp %i

On Linux
for file in `ls *.tif`; do gdaltindex my.shp $file; done:

ls *.tif you would have to replace with a proper find commando to search recursively for tiff files.

This does not influence Mapserver, assuming your index will be generated once and then used (no runtime index).

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Jeroen Ticheler <Jeroen.Ticheler at FAO.ORG> 3-10-2005 11:26:00 >>>
Hi,
I wanted to know if gdaltindex supports a "scanning" of a directory  
tree while building the index file? I haven't managed to get that to  
work yet.
The next question than is if MapServer would be able to support such  
an index?
Thanks,
Jeroen
_______________________
Jeroen Ticheler
FAO-UN
Tel: +39 06 57056041
http://www.fao.org/geonetwork



More information about the mapserver-users mailing list