<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GDAL: gdaltindex</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1><a class="anchor" id="gdaltindex">gdaltindex </a></h1><p>builds a shapefile as a raster tileindex</p> <h2><a class="anchor" id="isynopsis"> SYNOPSIS</a></h2> <div class="fragment"><pre class="fragment"> gdaltindex [-tileindex field_name] [-write_absolute_path] [-skip_different_projection] index_file [gdal_file]* </pre></div><h2><a class="anchor" id="idescription"> DESCRIPTION</a></h2> <p>This program builds a shapefile with a record for each input raster file, an attribute containing the filename, and a polygon geometry outlining the raster. This output is suitable for use with UMN MapServer as a raster tileindex.</p> <ul> <li> The shapefile (index_file) will be created if it doesn't already exist, otherwise it will append to the existing file. </li> <li> The default tile index field is 'location'. </li> <li> Raster filenames will be put in the file exactly as they are specified on the commandline unless the option -write_absolute_path is used. </li> <li> If -skip_different_projection is specified, only files with same projection ref as files already inserted in the tileindex will be inserted. </li> <li> Simple rectangular polygons are generated in the same coordinate system as the rasters. </li> </ul> <h2><a class="anchor" id="iexample"> EXAMPLE</a></h2> Example: <div class="fragment"><pre class="fragment"> gdaltindex doq_index.shp doq/*.tif </pre></div> </div> <hr> Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.2-20100208. </body> </html>