[gdal-dev] ogr2ogr ERROR 6

Zoltan Szecsei zoltans at geograph.co.za
Sat Jul 16 06:04:09 EDT 2011


Hi,
I'm converting a bunch of MID-MIF files to TAB format, and one of them 
gives:
ERROR 6: Error during reading Record.

google comes up with:  CreateField() not supported by this layer

So I check the mif headers and they seem fine, and contain 240 POINT 
records with schema layout of 43 fields.
The mid file has 10080 commas in it, so that suggests the correct number 
of fields, as there are 240 records in it.
So that leaves most likely a field type error, which is not so quick to 
check.

Can someone please pass comment on this error?
Is it a show-stopper, or is only the faulty record skipped and the rest 
of the file translated?

The MID/MIF files together are small (some 75KB), so I can attach them 
if someone is interested.

Any ideas gladly welcome.
Perhaps future releases of ogr2ogr could include the filename & record 
number in the error message?

TIA,
Zoltan


-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.

34° 6'16.35"S 18°28'5.62"E

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323     www.geograph.co.za
===========================================



More information about the gdal-dev mailing list