[gdal-dev] ogr2ogr - create an IND file during MapInfo file export
Guilhem Vellut
guilhem.vellut at gmail.com
Mon Jan 7 04:45:58 EST 2008
Hello,
Thanks for your help. It worked! I actually had to use tab2tab (from
the MITAB distribution) instead of ogr2ogr in the second step but the
procedure does what I want.
guilhem
On Jan 4, 2008 11:16 PM, Daniel Morissette <dmorissette at mapgears.com> wrote:
> 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/
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list