gdaltindex for tif files residing on multiple subdirectories in windows enviroment

Jukka Sirviö Jukka.Sirvio at ARBONAUT.COM
Fri Jan 20 06:34:54 PST 2006


Hello!
Thank's Frank,  I did it with appending files from each folder separately 
to existing shp. These raster's are now working fine through Mapserver.

-Jukka-






Frank Warmerdam <warmerdam at pobox.com>
Sent by: fwarmerdam at gmail.com
20/01/2006 16:04
 
        To:     Jukka Sirviö <jukka.sirvio at arbonaut.com>
        cc:     MAPSERVER-USERS at lists.umn.edu
        Subject:        Re: [UMN_MAPSERVER-USERS] gdaltindex for tif files 
residing on multiple subdirectories in windows enviroment


On 1/20/06, Jukka Sirviö <jukka.sirvio at arbonaut.com> wrote:
> Hello!
> Our customer have raster material stored in centralized place on their
> network. One of the material's that will be used among others in our
> project contains ~4.5 gb tif files residing on multiple subdirectories.
> How can I make only ONE shp indexfile for mapserver from this material
> without copying the whole dataset into one single folder?
>
> Does gdaltindex understand any wildcard options for subdirectories?
> gdaltindex drive:/??/*.tif

Jukka,

The wildcarding is not part of gdaltindex itself.  On Unix it is done
by the commandline shell, and could handle this.  On Windows, you
can optionally built the Microsoft wildcard handling into the program
(which I do for FWTools), but I see it can't handle wildcards of this
sophistication.  Only wildcards at the filename portion of the path.

You could download cygwin and invoke the normal windows
gdaltindex from that as Cygwin will expand command line arguments
for the program in the normal fashion.

eg.
gdaltindex n:/data/*/*.tif

Alternatively, you could invoke gdaltindex manually for each directory
as it will append to an existing index if invoked multiple times.

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/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the MapServer-users mailing list