[gdal-dev] ogr2ogr ERROR 6 - Found It !!

Zoltan Szecsei zoltans at geograph.co.za
Sat Jul 16 07:37:18 EDT 2011


I downloaded and tried the mitab in Windows, and it gave me the record 
number on which it failed.
True enough, that record in the MID file was incorrect according to the 
schema.

So, for the next version of ogr2ogr, any chance we can get a record 
number please :-)  ?

Thanks for the pointer, Chaitanya.

Kind regards,
Zoltan

On 2011/07/16 13:16, Zoltan Szecsei wrote:
> Hi Chaitanya,
> I'm shelling out from a Genamap script to Linux BASH shell, to run 
> ogr2ogr, so nope, not in Windows.
>
> Regards,
> Zoltan
>
> On 2011/07/16 12:36, Chaitanya kumar CH wrote:
>> Zoltan,
>>
>> If you are in Windows, try the mif2tab utility from 
>> http://mitab.maptools.org/
>> OGR's Mitab driver is based on the same library.
>>
>> On Sat, Jul 16, 2011 at 3:34 PM, Zoltan Szecsei 
>> <zoltans at geograph.co.za <mailto:zoltans at geograph.co.za>> wrote:
>>
>>     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 <http://www.geograph.co.za>
>>     ===========================================
>>
>>     _______________________________________________
>>     gdal-dev mailing list
>>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>>
>>
>>
>> -- 
>> Best regards,
>> Chaitanya kumar CH.
>>
>> +91-9494447584
>> 17.2416N 80.1426E
>
>
> -- 
>
> ===========================================
> 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-6115323www.geograph.co.za
> ===========================================
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


-- 

===========================================
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
===========================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110716/1607b8be/attachment.html


More information about the gdal-dev mailing list