[gdal-dev] ogr2ogr - create an IND file during MapInfo file export

Daniel Morissette dmorissette at mapgears.com
Fri Jan 4 17:16:33 EST 2008


Frank Warmerdam wrote:
> 
> I'm sorry, but ogr2ogr does not appear to support creating .ind files
> for mapinfo datasets.  The capability does exist in the underlying MITAB
> library so if you wanted it badly enough you might be able to modify the
> mapinfo driver, or perhaps build a custom mitab utility to do this.
> 

If you need to do this only once for a few files, then you could convert 
the SHP to MIF/MID, then edit the .MIF header (it's a text file) to add 
an INDEX line in the header (just above the COLUMNS line) listing the 
numbers of all columns to index. Then rerun ogr2ogr to convert the 
MIF/MID dataset to TAB and the specified columns will be indexed.

For more info on the MIF File header format, see:
http://www.directionsmag.com/mapinfo-l/mif/AppJ.pdf

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the gdal-dev mailing list