To me your request looks like correct and gdaltindex should support wildcards in that way. Location is the default for the tile index field in the shapefile that will be created, so it is not necessary but it does not harm if it stays. And I suppose you have checked that you really have some tiff files in the directory you are running the gdaltindex from. To be sure make a trial by giving one complete tiff filename in your command and see if it then makes tileindex called test.shp for you. You can also try what happens if you give before the wildcard a full path to your image files.
If it still seems to be problem with wildcard I suggest you to collect some data about your environment (Windows/Linux, gdal version etc.) and send a question to gdal-dev mailing list. Or you may download FWTools package and repeat your test with the gdaltindex version that comes with the package.
-Jukka Rahkonen-
-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net on behalf of kevinhh
Sent: Sat 22.12.2007 9:29
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] gdaltindex and *.tif
Hi all, I'm trying to use the gdaltindex command to create an index shp file
for ImageMosaic.
But when I use the wild card as in the tutorial example: gdaltindex
-tileindex location test *.tif, I get:
Creating new index file...
ERROR 4: `*.tif' does not exist in the file system,
and is not recognised as a supported dataset name.
Anyone know how to get it to recognize the wildcard? Thanks a lot!