Not sure what environment you are in, but on Linux I do stuff like:

 find . -name "*.shp" -exec ogrtindex -f "ESRI Shapefile" tindex.shp {} \;

This will recurse from the current directory (i.e. mapdata) and find all of the 
shapefiles and add them to the new tindex.shp file.  

Hope this helps.

A

+----------------------------------------+
| Aaron Racicot  | [EMAIL PROTECTED]   |
| GIS Programmer | 503.467.0759          |
+----------------------------------------+
| e c o t r u s t                        |
| Jean Vollum Natural Capital Center     |
| 721 NW Ninth Avenue                    |
| Suite 200                              |
| Portland, OR 97209                     |
| www.ecotrust.org                       |
+----------------------------------------+
-----Original Message-----
From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Hunter, 
David - St. Louis Park, MN
Sent: Friday, February 17, 2006 3:11 PM
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] ogrtindex and directory structure


I need to tile index several layers for 50 states.  If my directory structure 
looks like this:
 
/mapdata
            /AK
            .
            .
            .
            /WY
                        /wy001/Parks.shp, water.shp, etc.
                        .
                        .
                        .
                        /wy045/Parks.shp, water.shp, etc.
 
Is there any way to create tile index files at the /mapdata/ directory that 
point to all the /state/county subdirectories?  The ogrtindex utility doesn't 
seem to have the ability to recurse the directory tree.  I could copy all park 
files into a /mapdata/parks/ directory, I suppose, and then index all the files 
in the directory, but that would put several thousand files into a single 
directory, which is a bit unmanageable and ugly.  Anybody else come up with a 
solution to this problem?
 
David S. Hunter
Sr. Software Engineer
Fidelity National Geographic Solutions
division of Fidelity National Financial
5353 Gamble Drive, Suite 201
St. Louis Park, MN 55416
ลก Email: [EMAIL PROTECTED]
' Phone: 952.542.1440 ext. 256
7 Fax: 952.542.3859
 

Reply via email to