[gdal-dev] [MITAB] Unsupported case or corrupt file

RICHARD Didier didier.richard at ign.fr
Sat Dec 26 15:48:21 EST 2009


> Which version of GDAL/OGR are you using?
>

I finally found the problem in my copy of the trunk : my copy of
mitab_mapcoordblock.cpp was "v 1.16 2007/02/23", while the trunk version
of the same file was "v 1.17 2008/02/01". This was the only corrupted file
...

> Can you please try to convert your dataset from TAB to MIF using the
tab2tab program available at http://mitab.maptools.org/ and see if you
get the same error?
>

After running tab2tab (without error), I have got a big difference in the
resulting MapInfo files : there are big parts of the original TAB file
that are missing in the resulting mif file. I got pdf generated with QGIS
showing that, but I am not sure it is allowed to send them over the list.

On the other hand, after having recompiled GDAL/OGR, I got the data into a
postgreSQL database : the result is the same as the original TAB file.

@daniel: if you want I can upload the original files (and PDF) where you
would like.

Sincerely,

didier

> Daniel
>
>
> RICHARD Didier wrote:
>> Hi all,
>> I'm trying to read a (big) mapinfo TAB file and I'm facing the
following
>> error (source is the today's trunk) with ogr2ogr as well as ogrinfo : ____
>> $ ogrinfo -al rall.TAB
>> Had to open data source read-only.
>> INFO: Open of `rall.TAB'
>>       using driver `MapInfo File' successful.
>> Layer name: rall
>> Geometry: Unknown (any)
>> Feature Count: 6138177
>> Extent: (-5.053907, 41.367176) - (9.559522, 51.075147)
>> Layer SRS WKT:
>> GEOGCS["unnamed",
>>     DATUM["WGS_1984",
>>         SPHEROID["WGS 84",6378137,298.257223563],
>>         TOWGS84[0,0,0,-0,-0,-0,0]],
>>     PRIMEM["Greenwich",0],
>>     UNIT["degree",0.0174532925199433]]
>> ID: Integer (0.0)
>> ERROR 7: Unsupported case or corrupt file: MULTIPLINE/REGION object
vertices do not appear to be grouped together.
>> ERROR 3: Failed reading coordinate data at offset 210440
>> ____
>> With debug on there is no more usefull information.
>> My objective is to put this dataset into postgresql.
>> The mapinfo files I'm trying to read are as follows (ls -lh):
>> ____
>>   135 rall.TAB
>>  1,2G rall.MAP
>>   24M rall.ID
>>   30M rall.DAT
>> ____
>> In mitab_mapcoordblock.cpp (line 503) when the error occurs I have got the
>> following values :
>> i=0 numSections=1
>> nVextexOffset=-16384003
>> numVertices=24
>> numVerticesTotal=24
>> The negative offset is the cause of the error, but it is declared as an
int. Is this right ?
>> I have not found any tickets about this kind of error.
>> Any idea on how to fix this (I could read the TAB file with QGIS 1.3.0 but
>> not sure if QGIS is using GDAL/OGR for reading files)?
>> Regards
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


-- 
RICHARD Didier - Chef du pôle technique du Géoportail
2/4, avenue Pasteur - 94165 Saint Mandé Cedex
Tél : +33 (0) 1 43 98 83 23





More information about the gdal-dev mailing list